Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from ProcessVideo import process_video
|
|
| 3 |
|
| 4 |
# Gradio function to handle the video upload and processing
|
| 5 |
def gradio_video_processing(video):
|
| 6 |
-
video_path = video
|
| 7 |
output_video_path = process_video(video_path) # Process the video and get the output path
|
| 8 |
return output_video_path
|
| 9 |
|
|
@@ -13,3 +13,5 @@ video_output = gr.Video(label="Processed Video with Labels")
|
|
| 13 |
|
| 14 |
# Create and launch Gradio interface
|
| 15 |
gr.Interface(fn=gradio_video_processing, inputs=video_input, outputs=video_output, title="Fight Detection in Video").launch()
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# Gradio function to handle the video upload and processing
|
| 5 |
def gradio_video_processing(video):
|
| 6 |
+
video_path = video # Gradio provides the uploaded video file path
|
| 7 |
output_video_path = process_video(video_path) # Process the video and get the output path
|
| 8 |
return output_video_path
|
| 9 |
|
|
|
|
| 13 |
|
| 14 |
# Create and launch Gradio interface
|
| 15 |
gr.Interface(fn=gradio_video_processing, inputs=video_input, outputs=video_output, title="Fight Detection in Video").launch()
|
| 16 |
+
|
| 17 |
+
|