Update app.py
Browse files
app.py
CHANGED
@@ -1311,7 +1311,7 @@ def randomize_analysis(choice):
|
|
1311 |
height = random.uniform(3.0, 10.0)
|
1312 |
width = random.uniform(3.0, 10.0)
|
1313 |
diameter = random.uniform(3.0, 10.0)
|
1314 |
-
choice2 = random.choice(["box", "cone", "sphere", "
|
1315 |
return [gradio.Radio.update(choice2), gradio.Slider.update(length), gradio.Slider.update(width), gradio.Slider.update(height), gradio.Slider.update(diameter), gradio.Number.update(), gradio.Plot.update(make_voxels(choice2, length, height, width, diameter))]
|
1316 |
elif choice == "Pick Shape from Dataset":
|
1317 |
num = random.randint(1, 4999)
|
|
|
1311 |
height = random.uniform(3.0, 10.0)
|
1312 |
width = random.uniform(3.0, 10.0)
|
1313 |
diameter = random.uniform(3.0, 10.0)
|
1314 |
+
choice2 = random.choice(["box", "cone", "sphere", "wedge", "cone"])
|
1315 |
return [gradio.Radio.update(choice2), gradio.Slider.update(length), gradio.Slider.update(width), gradio.Slider.update(height), gradio.Slider.update(diameter), gradio.Number.update(), gradio.Plot.update(make_voxels(choice2, length, height, width, diameter))]
|
1316 |
elif choice == "Pick Shape from Dataset":
|
1317 |
num = random.randint(1, 4999)
|