nalin0503 commited on
Commit
9137419
·
1 Parent(s): 9f34bea
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -366,14 +366,13 @@ def main():
366
 
367
  # Check for output video
368
  video_found = False
369
-
370
- # First check FILM output directory if FILM was used
371
- if use_film:
372
- possible_outputs = [f for f in os.listdir(film_output_dir) if f.endswith(".mp4")]
373
- if possible_outputs:
374
- final_video_path = os.path.join(film_output_dir, possible_outputs[0])
375
- video_found = True
376
-
377
  # If not found in FILM dir, check regular output dir
378
  if not video_found:
379
  possible_outputs = [f for f in os.listdir(output_dir) if f.endswith(".mp4")]
 
366
 
367
  # Check for output video
368
  video_found = False
369
+
370
+ # Always check FILM output directory first
371
+ possible_outputs = [f for f in os.listdir(film_output_dir) if f.endswith(".mp4")]
372
+ if possible_outputs:
373
+ final_video_path = os.path.join(film_output_dir, possible_outputs[0])
374
+ video_found = True
375
+
 
376
  # If not found in FILM dir, check regular output dir
377
  if not video_found:
378
  possible_outputs = [f for f in os.listdir(output_dir) if f.endswith(".mp4")]