Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,11 +14,10 @@ def detect_objects(image):
|
|
14 |
results = model(image)
|
15 |
return results[0].plot()
|
16 |
|
17 |
-
gr.Interface(
|
18 |
fn=detect_objects,
|
19 |
inputs=gr.Image(sources="webcam", type="numpy", label="Live Webcam"),
|
20 |
outputs=gr.Image(type="numpy", label="Detection Output"),
|
21 |
-
live=True
|
22 |
-
)
|
23 |
interface.launch()
|
24 |
|
|
|
14 |
results = model(image)
|
15 |
return results[0].plot()
|
16 |
|
17 |
+
interface = gr.Interface(
|
18 |
fn=detect_objects,
|
19 |
inputs=gr.Image(sources="webcam", type="numpy", label="Live Webcam"),
|
20 |
outputs=gr.Image(type="numpy", label="Detection Output"),
|
21 |
+
live=True)
|
|
|
22 |
interface.launch()
|
23 |
|