fffiloni commited on
Commit
28c0cf9
1 Parent(s): 2a07f50

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +3 -3
gradio_app.py CHANGED
@@ -258,9 +258,9 @@ def main():
258
 
259
  image.select(on_click, [image, target_point, points, size], [image, text, target_point], queue=False)
260
  btn.click(on_drag, inputs=[model, points, max_iters, state, size, mask], outputs=[image, state, progress]).then(
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])
 
258
 
259
  image.select(on_click, [image, target_point, points, size], [image, text, target_point], queue=False)
260
  btn.click(on_drag, inputs=[model, points, max_iters, state, size, mask], outputs=[image, state, progress]).then(
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])