fffiloni commited on
Commit
55ee553
1 Parent(s): d42f6e6

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +4 -4
gradio_app.py CHANGED
@@ -261,10 +261,10 @@ def main():
261
  #on_show_save, outputs=save_panel)#.then(
262
  #on_save_files, inputs=[image, state], outputs=[files]
263
  # )
264
- reset_btn.click(on_reset, inputs=[points, image, state], outputs=[points, image])
265
- undo_btn.click(on_undo, inputs=[points, image, state, size], outputs=[points, image])
266
- model_dropdown.change(on_change_model, inputs=[model_dropdown, model], outputs=[model, state, image, size])
267
- new_btn.click(on_new_image, inputs=[model], outputs=[image, mask, state, points, target_point])
268
  max_iters.change(on_max_iter_change, inputs=max_iters, outputs=progress, queue=False)
269
  return demo
270
 
 
261
  #on_show_save, outputs=save_panel)#.then(
262
  #on_save_files, inputs=[image, state], outputs=[files]
263
  # )
264
+ reset_btn.click(on_reset, inputs=[points, image, state], outputs=[points, image],queue=False)
265
+ undo_btn.click(on_undo, inputs=[points, image, state, size], outputs=[points, image], queue=False)
266
+ model_dropdown.change(on_change_model, inputs=[model_dropdown, model], outputs=[model, state, image, size], queue=False)
267
+ new_btn.click(on_new_image, inputs=[model], outputs=[image, mask, state, points, target_point], queue=False)
268
  max_iters.change(on_max_iter_change, inputs=max_iters, outputs=progress, queue=False)
269
  return demo
270