kdevoe commited on
Commit
ea37c20
·
verified ·
1 Parent(s): 37e7681

Removing shape from gradio outputs as no longer used in API

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def video_stream(frame):
39
  webcam_interface = gr.Interface(
40
  fn=video_stream,
41
  inputs=gr.Video(format="mp4", streaming=True),
42
- outputs=gr.Image(shape=(640, 480)),
43
  live=True,
44
  description="Real-Time Object Detection with YOLO on Hugging Face"
45
  )
@@ -48,3 +48,4 @@ webcam_interface = gr.Interface(
48
  if __name__ == "__main__":
49
  webcam_interface.launch()
50
 
 
 
39
  webcam_interface = gr.Interface(
40
  fn=video_stream,
41
  inputs=gr.Video(format="mp4", streaming=True),
42
+ outputs=gr.Image(),
43
  live=True,
44
  description="Real-Time Object Detection with YOLO on Hugging Face"
45
  )
 
48
  if __name__ == "__main__":
49
  webcam_interface.launch()
50
 
51
+