Update app.py
Browse files
app.py
CHANGED
|
@@ -1290,7 +1290,7 @@ def randomize_analysis(choice):
|
|
| 1290 |
height = random.uniform(3.0, 10.0)
|
| 1291 |
width = random.uniform(3.0, 10.0)
|
| 1292 |
diameter = random.uniform(3.0, 10.0)
|
| 1293 |
-
choice2 = random.
|
| 1294 |
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))]
|
| 1295 |
elif choice == "Pick Shape from Dataset":
|
| 1296 |
num = random.randint(1, 4999)
|
|
|
|
| 1290 |
height = random.uniform(3.0, 10.0)
|
| 1291 |
width = random.uniform(3.0, 10.0)
|
| 1292 |
diameter = random.uniform(3.0, 10.0)
|
| 1293 |
+
choice2 = random.choice(["box", "cone", "sphere", "pyramid", "cone"])
|
| 1294 |
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))]
|
| 1295 |
elif choice == "Pick Shape from Dataset":
|
| 1296 |
num = random.randint(1, 4999)
|