omarhkh commited on
Commit
8866c7f
1 Parent(s): 451b75d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -180,8 +180,8 @@ with demo:
180
  name = gr.Textbox(label="Final Result")
181
  output = gr.Textbox(label="Reason for the results")
182
  greet_btn = gr.Button("Results")
183
- greet_btn.click(fn=detect_objects2(0), inputs=[options,img_input,img_input,slider_input,options2], outputs=output, queue=True)
184
- name.change(fn=detect_objects2(1), inputs=[options,img_input,img_input,slider_input,options2], outputs=name, queue=True)
185
 
186
 
187
 
 
180
  name = gr.Textbox(label="Final Result")
181
  output = gr.Textbox(label="Reason for the results")
182
  greet_btn = gr.Button("Results")
183
+ greet_btn.click(fn=detect_objects2()[0], inputs=[options,img_input,img_input,slider_input,options2], outputs=output, queue=True)
184
+ name.change(fn=detect_objects2()[1], inputs=[options,img_input,img_input,slider_input,options2], outputs=name, queue=True)
185
 
186
 
187