Update app.py
Browse files
app.py
CHANGED
|
@@ -298,25 +298,32 @@ with demo:
|
|
| 298 |
cam_but = gr.Button('Detect')
|
| 299 |
|
| 300 |
url_but.click(
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
)
|
| 306 |
|
| 307 |
-
img_but.click(
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
)
|
| 313 |
|
| 314 |
-
cam_but.click(
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
|
| 321 |
|
| 322 |
demo.queue()
|
|
|
|
| 298 |
cam_but = gr.Button('Detect')
|
| 299 |
|
| 300 |
url_but.click(
|
| 301 |
+
detect_objects_image,
|
| 302 |
+
inputs=[options, url_input, img_input, web_input, slider_input],
|
| 303 |
+
outputs=[img_output_from_url],
|
| 304 |
+
queue=True
|
| 305 |
+
)
|
| 306 |
|
| 307 |
+
img_but.click(
|
| 308 |
+
detect_objects_image,
|
| 309 |
+
inputs=[options, url_input, img_input, web_input, slider_input],
|
| 310 |
+
outputs=[img_output_from_upload],
|
| 311 |
+
queue=True
|
| 312 |
+
)
|
| 313 |
|
| 314 |
+
cam_but.click(
|
| 315 |
+
detect_objects_image,
|
| 316 |
+
inputs=[options, url_input, img_input, web_input, slider_input],
|
| 317 |
+
outputs=[img_output_from_webcam],
|
| 318 |
+
queue=True
|
| 319 |
+
)
|
| 320 |
+
|
| 321 |
+
vid_but.click(
|
| 322 |
+
detect_objects_video,
|
| 323 |
+
inputs=[options, video_input, slider_input],
|
| 324 |
+
outputs=[video_output],
|
| 325 |
+
queue=True
|
| 326 |
+
)
|
| 327 |
|
| 328 |
|
| 329 |
demo.queue()
|