basilevh commited on
Commit
d81cc17
1 Parent(s): b19c556

slider change is not always fully up to date, so keep vis button without queue

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -605,22 +605,22 @@ def run_demo(
605
  # because otherwise the gradio plot always resets the plotly 3D viewpoint for some reason,
606
  # which might confuse the user into thinking that the plot has been updated too.
607
 
608
- polar_slider.change(fn=partial(main_run, models, device, cam_vis, 'vis'),
609
- inputs=[polar_slider, azimuth_slider, radius_slider,
610
- image_block, preprocess_chk],
611
- outputs=[desc_output, vis_output, preproc_output],
612
- queue=False)
613
- azimuth_slider.change(fn=partial(main_run, models, device, cam_vis, 'vis'),
614
- inputs=[polar_slider, azimuth_slider, radius_slider,
615
- image_block, preprocess_chk],
616
- outputs=[desc_output, vis_output, preproc_output],
617
- queue=False)
618
-
619
- radius_slider.change(fn=partial(main_run, models, device, cam_vis, 'vis'),
620
- inputs=[polar_slider, azimuth_slider, radius_slider,
621
- image_block, preprocess_chk],
622
- outputs=[desc_output, vis_output, preproc_output],
623
- queue=False)
624
 
625
  vis_btn.click(fn=partial(main_run, models, device, cam_vis, 'vis'),
626
  inputs=[polar_slider, azimuth_slider, radius_slider,
 
605
  # because otherwise the gradio plot always resets the plotly 3D viewpoint for some reason,
606
  # which might confuse the user into thinking that the plot has been updated too.
607
 
608
+ # polar_slider.change(fn=partial(main_run, models, device, cam_vis, 'vis'),
609
+ # inputs=[polar_slider, azimuth_slider, radius_slider,
610
+ # image_block, preprocess_chk],
611
+ # outputs=[desc_output, vis_output, preproc_output],
612
+ # queue=False)
613
+ # azimuth_slider.change(fn=partial(main_run, models, device, cam_vis, 'vis'),
614
+ # inputs=[polar_slider, azimuth_slider, radius_slider,
615
+ # image_block, preprocess_chk],
616
+ # outputs=[desc_output, vis_output, preproc_output],
617
+ # queue=False)
618
+
619
+ # radius_slider.change(fn=partial(main_run, models, device, cam_vis, 'vis'),
620
+ # inputs=[polar_slider, azimuth_slider, radius_slider,
621
+ # image_block, preprocess_chk],
622
+ # outputs=[desc_output, vis_output, preproc_output],
623
+ # queue=False)
624
 
625
  vis_btn.click(fn=partial(main_run, models, device, cam_vis, 'vis'),
626
  inputs=[polar_slider, azimuth_slider, radius_slider,