Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,8 @@ def process_video(video):
|
|
59 |
# Release resources
|
60 |
input_video.release()
|
61 |
|
62 |
-
# Return the processed frames
|
63 |
-
return processed_frames
|
64 |
|
65 |
# Create a Gradio interface for video upload
|
66 |
iface = gr.Interface(fn=process_video,
|
|
|
59 |
# Release resources
|
60 |
input_video.release()
|
61 |
|
62 |
+
# Return the processed frames as a list of NumPy arrays (Gradio expects this format)
|
63 |
+
return processed_frames # Ensure this is a list of frames
|
64 |
|
65 |
# Create a Gradio interface for video upload
|
66 |
iface = gr.Interface(fn=process_video,
|