fffiloni commited on
Commit
ffed23b
·
verified ·
1 Parent(s): 007ced1

Update app.py

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