aje6 commited on
Commit
9a2da70
·
verified ·
1 Parent(s): 616a781

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- input = 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
 
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