jonigata commited on
Commit
901df68
1 Parent(s): 16e4257

change json when save

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. model/README.md +0 -1
  3. 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
  }