monster07 commited on
Commit
d08a8b7
·
verified ·
1 Parent(s): d36a251

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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."