danielaruizl1 commited on
Commit
dd5a089
·
verified ·
1 Parent(s): f1e6a52

fix wrapper bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -312,7 +312,7 @@ with gr.Blocks() as demo:
312
  process_files_button = gr.Button("Separate files")
313
  process_result = gr.Text("Click on 'Separate files' once you see the JSON file", label="Separated files:")
314
  process_btn.click(batch_path_detection, inputs=[inp_path, bth_conf_fs], outputs=bth_out2)
315
- process_files_button.click(wrap_bool_output(pw_utils.detection_folder_separation, inputs=[bth_out2, inp_path, out_path, bth_conf_fs], outputs=process_result))
316
  with gr.Tab("Batch Image Process"):
317
  with gr.Row():
318
  with gr.Column():
 
312
  process_files_button = gr.Button("Separate files")
313
  process_result = gr.Text("Click on 'Separate files' once you see the JSON file", label="Separated files:")
314
  process_btn.click(batch_path_detection, inputs=[inp_path, bth_conf_fs], outputs=bth_out2)
315
+ process_files_button.click(wrap_bool_output(pw_utils.detection_folder_separation), inputs=[bth_out2, inp_path, out_path, bth_conf_fs], outputs=process_result)
316
  with gr.Tab("Batch Image Process"):
317
  with gr.Row():
318
  with gr.Column():