fffiloni commited on
Commit
cdd5bef
1 Parent(s): b015e22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -164,7 +164,8 @@ def run_inference(prompt, video_path, condition, video_length):
164
  # Resize the video
165
  resized = resize_video(video_path, 'resized.mp4', 512, 512, target_fps)
166
 
167
-
 
168
 
169
  # Check if the file already exists
170
  if os.path.exists(os.path.join(output_path, f"result.mp4")):
 
164
  # Resize the video
165
  resized = resize_video(video_path, 'resized.mp4', 512, 512, target_fps)
166
 
167
+ output_path = 'output/'
168
+ os.makedirs(output_path, exist_ok=True)
169
 
170
  # Check if the file already exists
171
  if os.path.exists(os.path.join(output_path, f"result.mp4")):