taechasith commited on
Commit
0ea55c4
·
verified ·
1 Parent(s): 514fac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def run_app(webcam):
55
  # Launch Gradio UI (Fixed Input for New Gradio Versions)
56
  iface = gr.Interface(
57
  fn=run_app,
58
- inputs=gr.Image(tool="webcam", streaming=True), # FIXED
59
  outputs=["image", "plot", "audio"],
60
  live=True
61
  )
 
55
  # Launch Gradio UI (Fixed Input for New Gradio Versions)
56
  iface = gr.Interface(
57
  fn=run_app,
58
+ inputs=gr.Video(source="webcam", streaming=True), # ✅ Corrected Input
59
  outputs=["image", "plot", "audio"],
60
  live=True
61
  )