Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,7 @@ def get_frames(video_in, img_type):
|
|
142 |
cv2.destroyAllWindows()
|
143 |
print("broke the video into frames")
|
144 |
|
145 |
-
return frames, fps
|
146 |
|
147 |
def get_matte(video_in, subject_to_remove):
|
148 |
print("Trying to call video matting")
|
@@ -251,7 +251,7 @@ def infer_auto(project_name, video_in, subject_to_remove):
|
|
251 |
|
252 |
|
253 |
# Convert the float fps to an integer
|
254 |
-
needed_fps = int(video_frames[
|
255 |
|
256 |
# Load the videos
|
257 |
video1 = VideoFileClip(results_folder_content[0])
|
|
|
142 |
cv2.destroyAllWindows()
|
143 |
print("broke the video into frames")
|
144 |
|
145 |
+
return frames, fps, clip.fps
|
146 |
|
147 |
def get_matte(video_in, subject_to_remove):
|
148 |
print("Trying to call video matting")
|
|
|
251 |
|
252 |
|
253 |
# Convert the float fps to an integer
|
254 |
+
needed_fps = int(video_frames[2])
|
255 |
|
256 |
# Load the videos
|
257 |
video1 = VideoFileClip(results_folder_content[0])
|