Update app.py
Browse files
app.py
CHANGED
|
@@ -208,7 +208,12 @@ def change_textbox(choice):
|
|
| 208 |
return [gradio.Slider.update(visible=True), gradio.Slider.update(visible=False), gradio.Slider.update(visible=True), gradio.Slider.update(visible=False)]
|
| 209 |
|
| 210 |
|
| 211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
|
| 213 |
with gradio.Blocks() as demo:
|
| 214 |
with gradio.Accordion("✨ Read about the ML model here! ✨", open=False):
|
|
|
|
| 208 |
return [gradio.Slider.update(visible=True), gradio.Slider.update(visible=False), gradio.Slider.update(visible=True), gradio.Slider.update(visible=False)]
|
| 209 |
|
| 210 |
|
| 211 |
+
def geometry_change(choice):
|
| 212 |
+
if choice == "Generate Shape from Parameters":
|
| 213 |
+
return [gradio.Block.update(visible=True), gradio.Block.update(visible=False)]
|
| 214 |
+
elif choice == "Pick Shape from Dataset":
|
| 215 |
+
return [gradio.Block.update(visible=False), gradio.Block.update(visible=True)]
|
| 216 |
+
|
| 217 |
|
| 218 |
with gradio.Blocks() as demo:
|
| 219 |
with gradio.Accordion("✨ Read about the ML model here! ✨", open=False):
|