ccm commited on
Commit
83ff6e4
·
1 Parent(s): 2d76c04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -231,7 +231,6 @@ with gradio.Blocks() as demo:
231
  whence_commeth_geometry = gradio.Radio(
232
  ["Construct Shape from Parameters", "Pick Shape from Dataset"], label="How would you like to generate the shape of the offshore structure for analysis?", value="Construct Shape from Parameters"
233
  )
234
- whence_commeth_geometry.change(fn=geometry_change, inputs=[whence_commeth_geometry], outputs=[radio, height, width, diameter, length, num, btn2])
235
  radio = gradio.Radio(
236
  ["box", "cone", "cylinder", "sphere", "wedge"], label="What kind of shape would you like to generate?", value="box"
237
  )
@@ -242,8 +241,8 @@ with gradio.Blocks() as demo:
242
 
243
  radio.change(fn=change_textbox, inputs=radio, outputs=[height, width, diameter, length])
244
  num = gradio.Number(42, label="Type the index of the shape you would like to use or randomly select it.")
245
- btn1 = gradio.Button("Select")
246
-
247
  with gradio.Column():
248
  geo = gradio.Plot(label="Geometry")
249
 
 
231
  whence_commeth_geometry = gradio.Radio(
232
  ["Construct Shape from Parameters", "Pick Shape from Dataset"], label="How would you like to generate the shape of the offshore structure for analysis?", value="Construct Shape from Parameters"
233
  )
 
234
  radio = gradio.Radio(
235
  ["box", "cone", "cylinder", "sphere", "wedge"], label="What kind of shape would you like to generate?", value="box"
236
  )
 
241
 
242
  radio.change(fn=change_textbox, inputs=radio, outputs=[height, width, diameter, length])
243
  num = gradio.Number(42, label="Type the index of the shape you would like to use or randomly select it.")
244
+ whence_commeth_geometry.change(fn=geometry_change, inputs=[whence_commeth_geometry], outputs=[radio, height, width, diameter, length, num])
245
+ btn1 = gradio.Button("Select")
246
  with gradio.Column():
247
  geo = gradio.Plot(label="Geometry")
248