Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -664,14 +664,16 @@ with gr.Blocks(title="Generador de Videos con IA", theme=gr.themes.Soft()) as ap
|
|
664 |
)
|
665 |
|
666 |
generate_btn.click(
|
667 |
-
lambda: (None, None, gr.update(value="⏳ Procesando... Esto puede tomar
|
668 |
outputs=[video_output, file_output, status_output]
|
669 |
).then(
|
670 |
run_app,
|
671 |
inputs=[prompt_type, prompt_ia, prompt_manual, musica_input, voice_dropdown],
|
672 |
-
outputs=[video_output, file_output, status_output]
|
|
|
|
|
673 |
).then(
|
674 |
-
lambda video_path,
|
675 |
inputs=[video_output, file_output, status_output],
|
676 |
outputs=[file_output]
|
677 |
)
|
|
|
664 |
)
|
665 |
|
666 |
generate_btn.click(
|
667 |
+
lambda: (None, None, gr.update(value="⏳ Procesando... Esto puede tomar hasta 1 hora.")),
|
668 |
outputs=[video_output, file_output, status_output]
|
669 |
).then(
|
670 |
run_app,
|
671 |
inputs=[prompt_type, prompt_ia, prompt_manual, musica_input, voice_dropdown],
|
672 |
+
outputs=[video_output, file_output, status_output],
|
673 |
+
queue=True,
|
674 |
+
_js="() => { setTimeout(() => window.location.reload(), 3600000); }"
|
675 |
).then(
|
676 |
+
lambda video_path, file_output, status_msg: gr.update(visible=file_output.value is not None),
|
677 |
inputs=[video_output, file_output, status_output],
|
678 |
outputs=[file_output]
|
679 |
)
|