Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,11 @@ def resize_video(input_file, new_width):
|
|
70 |
# Close the video clip
|
71 |
clip.close()
|
72 |
|
73 |
-
|
|
|
|
|
|
|
|
|
74 |
|
75 |
def run_inference(prompt, video_path, condition, video_length):
|
76 |
|
@@ -79,7 +83,7 @@ def run_inference(prompt, video_path, condition, video_length):
|
|
79 |
|
80 |
# Call the function to resize the video
|
81 |
resized_video_path = resize_video(input_vid, new_width=512)
|
82 |
-
print(resized_video_path)
|
83 |
width, height, fps = get_video_dimension(resized_video_path)
|
84 |
|
85 |
print(f"{width} x {height} | {fps}")
|
|
|
70 |
# Close the video clip
|
71 |
clip.close()
|
72 |
|
73 |
+
temp_output_path = 'temp_output/'
|
74 |
+
os.makedirs(temp_output_path, exist_ok=True)
|
75 |
+
final_video_resized = os.path.join(temp_output_path, 'video_resized.mp4')
|
76 |
+
|
77 |
+
return final_video_resized
|
78 |
|
79 |
def run_inference(prompt, video_path, condition, video_length):
|
80 |
|
|
|
83 |
|
84 |
# Call the function to resize the video
|
85 |
resized_video_path = resize_video(input_vid, new_width=512)
|
86 |
+
print(f"PATH TO RESIZED: {resized_video_path}")
|
87 |
width, height, fps = get_video_dimension(resized_video_path)
|
88 |
|
89 |
print(f"{width} x {height} | {fps}")
|