ccm commited on
Commit
533d265
·
1 Parent(s): 7863f11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1321,7 +1321,8 @@ def randomize_analysis(choice):
1321
 
1322
  def geometry_change(choice, choice2, num, length, width, height, diameter):
1323
  if choice == "Construct Shape from Parameters":
1324
- 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))]
 
1325
  elif choice == "Pick Shape from Dataset":
1326
  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))]
1327
 
 
1321
 
1322
  def geometry_change(choice, choice2, num, length, width, height, diameter):
1323
  if choice == "Construct Shape from Parameters":
1324
+ [slider1, slider2, slider3, slider4, plot] = change_textbox(choice2, length, height, width, diameter)
1325
+ return [gradio.Radio.update(visible=True), slider1, slider2, slider3, slider4, gradio.Number.update(visible=False), gradio.Timeseries.update(visible=False), gradio.Plot.update(make_voxels(choice2, length, height, width, diameter))]
1326
  elif choice == "Pick Shape from Dataset":
1327
  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))]
1328