Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def process_video(video_path):
|
|
| 130 |
# ---------------- Gradio Interface ----------------
|
| 131 |
demo = gr.Interface(
|
| 132 |
fn=process_video,
|
| 133 |
-
inputs=gr.Video(type="filepath")
|
| 134 |
outputs=gr.Video(),
|
| 135 |
title="⚠️ Action Recognition System (Danger Detection)",
|
| 136 |
description="Upload a video and the system will detect dangerous actions like punching, kicking, hold-neck, blocking, and weapon raise."
|
|
|
|
| 130 |
# ---------------- Gradio Interface ----------------
|
| 131 |
demo = gr.Interface(
|
| 132 |
fn=process_video,
|
| 133 |
+
inputs=gr.Video(), # <-- FIXED (removed type="filepath")
|
| 134 |
outputs=gr.Video(),
|
| 135 |
title="⚠️ Action Recognition System (Danger Detection)",
|
| 136 |
description="Upload a video and the system will detect dangerous actions like punching, kicking, hold-neck, blocking, and weapon raise."
|