Update app.py
Browse files
app.py
CHANGED
|
@@ -1285,7 +1285,7 @@ import random
|
|
| 1285 |
|
| 1286 |
def geometry_change(choice, choice2, num, length, width, height, diameter):
|
| 1287 |
if choice == "Construct Shape from Parameters":
|
| 1288 |
-
return [gradio.Radio.update(visible=True), gradio.Slider.update(visible=True), gradio.Slider.update(visible=True), gradio.Slider.update(visible=True), gradio.Slider.update(visible=True), gradio.Number.update(visible=False), gradio.Timeseries.update(visible=False), gradio.Plot.update(make_voxels(choice2, length, height, width, diameter)]
|
| 1289 |
elif choice == "Pick Shape from Dataset":
|
| 1290 |
return [gradio.Radio.update(visible=False), gradio.Slider.update(visible=False), gradio.Slider.update(visible=False), gradio.Slider.update(visible=False), gradio.Slider.update(visible=False), gradio.Number.update(visible=True), gradio.Timeseries.update(visible=True), gradio.Plot.update(geometry(num))]
|
| 1291 |
|
|
|
|
| 1285 |
|
| 1286 |
def geometry_change(choice, choice2, num, length, width, height, diameter):
|
| 1287 |
if choice == "Construct Shape from Parameters":
|
| 1288 |
+
return [gradio.Radio.update(visible=True), gradio.Slider.update(visible=True), gradio.Slider.update(visible=True), gradio.Slider.update(visible=True), gradio.Slider.update(visible=True), gradio.Number.update(visible=False), gradio.Timeseries.update(visible=False), gradio.Plot.update(make_voxels(choice2, length, height, width, diameter))]
|
| 1289 |
elif choice == "Pick Shape from Dataset":
|
| 1290 |
return [gradio.Radio.update(visible=False), gradio.Slider.update(visible=False), gradio.Slider.update(visible=False), gradio.Slider.update(visible=False), gradio.Slider.update(visible=False), gradio.Number.update(visible=True), gradio.Timeseries.update(visible=True), gradio.Plot.update(geometry(num))]
|
| 1291 |
|