Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,6 +117,9 @@ def get_frames(video_in, img_type):
|
|
| 117 |
frames = []
|
| 118 |
#resize the video
|
| 119 |
print(video_in)
|
|
|
|
|
|
|
|
|
|
| 120 |
clip = VideoFileClip(video_in)
|
| 121 |
|
| 122 |
#check fps
|
|
|
|
| 117 |
frames = []
|
| 118 |
#resize the video
|
| 119 |
print(video_in)
|
| 120 |
+
# If input is a dict, extract the video path
|
| 121 |
+
if isinstance(video_in, dict):
|
| 122 |
+
video_in = video_in.get("video")
|
| 123 |
clip = VideoFileClip(video_in)
|
| 124 |
|
| 125 |
#check fps
|