Spaces:
Runtime error
Runtime error
change json when save
Browse files- app.py +2 -2
- model/README.md +0 -1
- static/poseEditor.js +1 -0
app.py
CHANGED
|
@@ -110,7 +110,7 @@ with gr.Blocks() as demo:
|
|
| 110 |
_js="(json, w, h) => { initializePose(json,w,h); return []; }")
|
| 111 |
saveBtn.click(
|
| 112 |
fn = None,
|
| 113 |
-
inputs = [], outputs = [],
|
| 114 |
-
_js="() => { savePose(); }")
|
| 115 |
|
| 116 |
gr.mount_gradio_app(app, demo, path="/")
|
|
|
|
| 110 |
_js="(json, w, h) => { initializePose(json,w,h); return []; }")
|
| 111 |
saveBtn.click(
|
| 112 |
fn = None,
|
| 113 |
+
inputs = [], outputs = [json],
|
| 114 |
+
_js="() => { return [savePose()]; }")
|
| 115 |
|
| 116 |
gr.mount_gradio_app(app, demo, path="/")
|
model/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
models for body estimation
|
|
|
|
|
|
static/poseEditor.js
CHANGED
|
@@ -232,4 +232,5 @@ function savePose() {
|
|
| 232 |
|
| 233 |
createEl.click();
|
| 234 |
createEl.remove();
|
|
|
|
| 235 |
}
|
|
|
|
| 232 |
|
| 233 |
createEl.click();
|
| 234 |
createEl.remove();
|
| 235 |
+
return { "candidate": candidate, "subset": subset };
|
| 236 |
}
|