ccm commited on
Commit
7863f11
·
1 Parent(s): 01e53e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", "pyramid", "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)
 
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)