Update app.py
Browse files
app.py
CHANGED
@@ -147,8 +147,8 @@ with demo:
|
|
147 |
|
148 |
img_but = gr.Button('Detect')
|
149 |
|
150 |
-
url_but.click(fn=detect_objects, inputs=[options, url_input, img_input,
|
151 |
-
img_but.click(fn=detect_objects, inputs=[options, url_input, img_input,
|
152 |
|
153 |
gr.Markdown("")
|
154 |
|
|
|
147 |
|
148 |
img_but = gr.Button('Detect')
|
149 |
|
150 |
+
url_but.click(fn=detect_objects, inputs=[options, url_input, img_input, slider_input], outputs=[img_output_from_url], queue=True)
|
151 |
+
img_but.click(fn=detect_objects, inputs=[options, url_input, img_input, slider_input], outputs=[img_output_from_upload], queue=True)
|
152 |
|
153 |
gr.Markdown("")
|
154 |
|