ccm commited on
Commit
672493b
·
1 Parent(s): a5fe928

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -232,11 +232,8 @@ with gradio.Blocks() as demo:
232
  with gradio.Tab("Analysis"):
233
  with gradio.Tab("Geometry from Dataset"):
234
  with gradio.Row():
235
- with gradio.Column():
236
- with gradio.Row("Label"):
237
- num = gradio.Number(42, label="data index")
238
- btn1 = gradio.Button("Select")
239
- with gradio.Row():
240
  radio = gradio.Radio(
241
  ["box", "cone", "cylinder", "sphere", "wedge"], label="What kind of shape would you like to generate?", value="box"
242
  )
@@ -245,7 +242,10 @@ with gradio.Blocks() as demo:
245
  diameter = gradio.Slider(label="Diameter", interactive=True, minimum=3.0, maximum=10.0, value=6.5, visible=False)
246
  length = gradio.Slider(label="Length", interactive=True, minimum=3.0, maximum=10.0, value=6.5)
247
 
248
- radio.change(fn=change_textbox, inputs=radio, outputs=[height, width, diameter, length])
 
 
 
249
 
250
  with gradio.Column():
251
  geo = gradio.Plot(label="Geometry")
 
232
  with gradio.Tab("Analysis"):
233
  with gradio.Tab("Geometry from Dataset"):
234
  with gradio.Row():
235
+ with gradio.Column():
236
+ with gradio.Accordion("Geometry from Parameters", open=True):
 
 
 
237
  radio = gradio.Radio(
238
  ["box", "cone", "cylinder", "sphere", "wedge"], label="What kind of shape would you like to generate?", value="box"
239
  )
 
242
  diameter = gradio.Slider(label="Diameter", interactive=True, minimum=3.0, maximum=10.0, value=6.5, visible=False)
243
  length = gradio.Slider(label="Length", interactive=True, minimum=3.0, maximum=10.0, value=6.5)
244
 
245
+ radio.change(fn=change_textbox, inputs=radio, outputs=[height, width, diameter, length])
246
+ with gradio.Row("Geometry from Dataset"):
247
+ num = gradio.Number(42, label="data index", open=False)
248
+ btn1 = gradio.Button("Select")
249
 
250
  with gradio.Column():
251
  geo = gradio.Plot(label="Geometry")