Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -580,7 +580,7 @@ def process_video(video_file):
|
|
| 580 |
output_video_path = generate_spirit_animal_video(compressed_path)
|
| 581 |
|
| 582 |
# Wait until the output video is generated
|
| 583 |
-
timeout =
|
| 584 |
if not wait_for_file(output_video_path, timeout=timeout):
|
| 585 |
print("Timeout occurred while waiting for video generation.")
|
| 586 |
return gr.update(value=None, visible=False) # Hide output if failed
|
|
|
|
| 580 |
output_video_path = generate_spirit_animal_video(compressed_path)
|
| 581 |
|
| 582 |
# Wait until the output video is generated
|
| 583 |
+
timeout = 60000 # Timeout in seconds
|
| 584 |
if not wait_for_file(output_video_path, timeout=timeout):
|
| 585 |
print("Timeout occurred while waiting for video generation.")
|
| 586 |
return gr.update(value=None, visible=False) # Hide output if failed
|