Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
184 |
-
name.change(fn=detect_objects2
|
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 |
|