Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,9 @@ def video_processing(video_frame):
|
|
56 |
# Launch Gradio app
|
57 |
gr.Interface(
|
58 |
fn=video_processing,
|
59 |
-
inputs=gr.Video(
|
60 |
outputs="video",
|
61 |
live=True,
|
62 |
title="Suspicious Activity Detection"
|
63 |
).launch(debug=True)
|
|
|
|
56 |
# Launch Gradio app
|
57 |
gr.Interface(
|
58 |
fn=video_processing,
|
59 |
+
inputs=gr.Video(streaming=True), # Correct the Video component
|
60 |
outputs="video",
|
61 |
live=True,
|
62 |
title="Suspicious Activity Detection"
|
63 |
).launch(debug=True)
|
64 |
+
|