swamisharan commited on
Commit
2f46953
Β·
verified Β·
1 Parent(s): d24e275

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,8 +29,8 @@ def detect_objects(image):
29
  # Set up the Gradio interface
30
  interface = gr.Interface(
31
  fn=detect_objects,
32
- inputs=gr.Image(type="pil", source="webcam", tool="editor"),
33
- outputs=gr.Image(type="pil"),
34
  live=True,
35
  title="Real-time Object Detection with YOLOv5"
36
  )
 
29
  # Set up the Gradio interface
30
  interface = gr.Interface(
31
  fn=detect_objects,
32
+ inputs=gr.inputs.Image(type="pil", tool="editor"),
33
+ outputs=gr.outputs.Image(type="pil"),
34
  live=True,
35
  title="Real-time Object Detection with YOLOv5"
36
  )