Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def detect_objects(frame, confidence_threshold=0.5):
|
|
52 |
iface = gr.Interface(fn=detect_objects,
|
53 |
#inputs=[
|
54 |
# gr.Video(sources="webcam", type="numpy"), # Webcam input
|
55 |
-
|
56 |
# gr.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Confidence Threshold") # Confidence slider
|
57 |
# ],
|
58 |
outputs="image") # Show output image with bounding boxes
|
|
|
52 |
iface = gr.Interface(fn=detect_objects,
|
53 |
#inputs=[
|
54 |
# gr.Video(sources="webcam", type="numpy"), # Webcam input
|
55 |
+
inputs = gr.Image(sources=["webcam"], type="numpy"),
|
56 |
# gr.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Confidence Threshold") # Confidence slider
|
57 |
# ],
|
58 |
outputs="image") # Show output image with bounding boxes
|