ccm commited on
Commit
f38c1a0
·
1 Parent(s): 18bef21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -252,10 +252,10 @@ with gradio.Blocks() as analysis_demo_from_params:
252
  radio = gradio.Radio(
253
  ["box", "cone", "cylinder", "sphere", "wedge"], label="What kind of shape would you like to generate?"
254
  )
255
- height = gradio.Slider(label="Height")
256
- width = gradio.Slider(label="Width")
257
- diameter = gradio.Slider(label="Diameter")
258
- length = gradio.Slider(label="Length")
259
 
260
  radio.change(fn=change_textbox, inputs=radio, outputs=[height, width, diameter, length])
261
 
 
252
  radio = gradio.Radio(
253
  ["box", "cone", "cylinder", "sphere", "wedge"], label="What kind of shape would you like to generate?"
254
  )
255
+ height = gradio.Slider(label="Height", interactive=True, minimum=3.0, maximum=10.0)
256
+ width = gradio.Slider(label="Width", interactive=True, minimum=3.0, maximum=10.0)
257
+ diameter = gradio.Slider(label="Diameter", interactive=True, minimum=3.0, maximum=10.0)
258
+ length = gradio.Slider(label="Length", interactive=True, minimum=3.0, maximum=10.0)
259
 
260
  radio.change(fn=change_textbox, inputs=radio, outputs=[height, width, diameter, length])
261