Update app.py
Browse files
app.py
CHANGED
|
@@ -250,12 +250,12 @@ with gradio.Blocks() as analysis_demo_from_params:
|
|
| 250 |
with gradio.Row():
|
| 251 |
with gradio.Column():
|
| 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 |
|
|
|
|
| 250 |
with gradio.Row():
|
| 251 |
with gradio.Column():
|
| 252 |
radio = gradio.Radio(
|
| 253 |
+
["box", "cone", "cylinder", "sphere", "wedge"], label="What kind of shape would you like to generate?", value="box"
|
| 254 |
)
|
| 255 |
+
height = gradio.Slider(label="Height", interactive=True, minimum=3.0, maximum=10.0, value=6.5)
|
| 256 |
+
width = gradio.Slider(label="Width", interactive=True, minimum=3.0, maximum=10.0, value=6.5)
|
| 257 |
+
diameter = gradio.Slider(label="Diameter", interactive=True, minimum=3.0, maximum=10.0, value=6.5)
|
| 258 |
+
length = gradio.Slider(label="Length", interactive=True, minimum=3.0, maximum=10.0, value=6.5)
|
| 259 |
|
| 260 |
radio.change(fn=change_textbox, inputs=radio, outputs=[height, width, diameter, length])
|
| 261 |
|