Spaces:
Runtime error
Runtime error
Chao Xu
commited on
Commit
โข
f370d19
1
Parent(s):
8897e08
remove textbox queues
Browse files
app.py
CHANGED
@@ -636,25 +636,25 @@ def run_demo(
|
|
636 |
).success(fn=partial(preprocess_run, predictor, models),
|
637 |
inputs=[image_block, preprocess_chk, *bbox_sliders],
|
638 |
outputs=[sam_block]
|
639 |
-
).success(fn=partial(update_guide, _GEN_1), outputs=[guide_text]
|
640 |
).success(fn=partial(stage1_run, models, device, cam_vis),
|
641 |
inputs=[tmp_dir, sam_block, scale_slider, steps_slider],
|
642 |
outputs=[elev_output, vis_output, *views]
|
643 |
-
).success(fn=partial(update_guide, _GEN_2), outputs=[guide_text]
|
644 |
).success(fn=partial(stage2_run, models, device),
|
645 |
inputs=[tmp_dir, elev_output, scale_slider],
|
646 |
outputs=[mesh_output]
|
647 |
-
).success(fn=partial(update_guide, _DONE), outputs=[guide_text])
|
648 |
|
649 |
|
650 |
regen_view_btn.click(fn=partial(stage1_run, models, device, None),
|
651 |
inputs=[tmp_dir, sam_block, scale_slider, steps_slider, elev_output, rerun_idx, *btn_retrys],
|
652 |
outputs=[rerun_idx, *btn_retrys, *views]
|
653 |
-
).success(fn=partial(update_guide, _REGEN_1), outputs=[guide_text])
|
654 |
regen_mesh_btn.click(fn=partial(stage2_run, models, device),
|
655 |
inputs=[tmp_dir, elev_output, scale_slider, rerun_idx],
|
656 |
outputs=[mesh_output, rerun_idx, regen_view_btn, regen_mesh_btn]
|
657 |
-
).success(fn=partial(update_guide, _REGEN_2), outputs=[guide_text])
|
658 |
|
659 |
|
660 |
demo.launch(enable_queue=True, share=False, max_threads=80) # auth=("admin", os.environ['PASSWD'])
|
|
|
636 |
).success(fn=partial(preprocess_run, predictor, models),
|
637 |
inputs=[image_block, preprocess_chk, *bbox_sliders],
|
638 |
outputs=[sam_block]
|
639 |
+
).success(fn=partial(update_guide, _GEN_1), outputs=[guide_text], queue=False
|
640 |
).success(fn=partial(stage1_run, models, device, cam_vis),
|
641 |
inputs=[tmp_dir, sam_block, scale_slider, steps_slider],
|
642 |
outputs=[elev_output, vis_output, *views]
|
643 |
+
).success(fn=partial(update_guide, _GEN_2), outputs=[guide_text], queue=False
|
644 |
).success(fn=partial(stage2_run, models, device),
|
645 |
inputs=[tmp_dir, elev_output, scale_slider],
|
646 |
outputs=[mesh_output]
|
647 |
+
).success(fn=partial(update_guide, _DONE), outputs=[guide_text], queue=False)
|
648 |
|
649 |
|
650 |
regen_view_btn.click(fn=partial(stage1_run, models, device, None),
|
651 |
inputs=[tmp_dir, sam_block, scale_slider, steps_slider, elev_output, rerun_idx, *btn_retrys],
|
652 |
outputs=[rerun_idx, *btn_retrys, *views]
|
653 |
+
).success(fn=partial(update_guide, _REGEN_1), outputs=[guide_text], queue=False)
|
654 |
regen_mesh_btn.click(fn=partial(stage2_run, models, device),
|
655 |
inputs=[tmp_dir, elev_output, scale_slider, rerun_idx],
|
656 |
outputs=[mesh_output, rerun_idx, regen_view_btn, regen_mesh_btn]
|
657 |
+
).success(fn=partial(update_guide, _REGEN_2), outputs=[guide_text], queue=False)
|
658 |
|
659 |
|
660 |
demo.launch(enable_queue=True, share=False, max_threads=80) # auth=("admin", os.environ['PASSWD'])
|