Spaces:
Running
Running
Debug
Browse files
app.py
CHANGED
@@ -366,14 +366,13 @@ def main():
|
|
366 |
|
367 |
# Check for output video
|
368 |
video_found = False
|
369 |
-
|
370 |
-
#
|
371 |
-
if
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
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")]
|