jonigata commited on
Commit
5f60e23
1 Parent(s): 853c0d4

remove 'Read json' button

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -113,7 +113,6 @@ with gr.Blocks(css="""button { min-width: 80px; }""") as demo:
113
  """)
114
  json = gr.JSON(label="Json")
115
  jsonSource = gr.Textbox(label="Json source", lines=10)
116
- jsonReadBtn = gr.Button(value="Read")
117
  with gr.Accordion(label="Notes", open=False):
118
  gr.Markdown("""
119
  Points to note for pseudo-3D rotation: When performing pseudo-3D rotation on the X and Y axes, the projection is converted to 2D and Z-axis information is lost when the mouse button is released. This means that if you finish dragging while the shape is collapsed, you may not be able to restore it to its original state. In such a case, please use the "undo" function.
@@ -168,7 +167,7 @@ When using Q, X, C, R, pressing and dont release until the operation is complete
168
  fn = None,
169
  inputs = [], outputs = [json],
170
  _js="() => { return [savePose()]; }")
171
- jsonReadBtn.click(
172
  fn = lambda x: x,
173
  inputs = [jsonSource], outputs = [json])
174
  replaceWithJsonBtn.click(
 
113
  """)
114
  json = gr.JSON(label="Json")
115
  jsonSource = gr.Textbox(label="Json source", lines=10)
 
116
  with gr.Accordion(label="Notes", open=False):
117
  gr.Markdown("""
118
  Points to note for pseudo-3D rotation: When performing pseudo-3D rotation on the X and Y axes, the projection is converted to 2D and Z-axis information is lost when the mouse button is released. This means that if you finish dragging while the shape is collapsed, you may not be able to restore it to its original state. In such a case, please use the "undo" function.
 
167
  fn = None,
168
  inputs = [], outputs = [json],
169
  _js="() => { return [savePose()]; }")
170
+ jsonSource.change(
171
  fn = lambda x: x,
172
  inputs = [jsonSource], outputs = [json])
173
  replaceWithJsonBtn.click(