Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -390,7 +390,6 @@ if pagina == "🎬 Gerador de Vídeo":
|
|
390 |
st.error(f"❌ Erro ao gerar vídeo:\n\n{e.stderr.decode(errors='ignore')}")
|
391 |
finally:
|
392 |
shutil.rmtree(temp_dir)
|
393 |
-
# ========== GERENCIADOR DE ARQUIVOS ==========
|
394 |
elif pagina == "📂 Gerenciador de Arquivos":
|
395 |
|
396 |
st.header("📂 Vídeos Salvos por Categoria")
|
@@ -430,6 +429,10 @@ elif pagina == "📂 Gerenciador de Arquivos":
|
|
430 |
st.markdown("<div class='file-box'>", unsafe_allow_html=True)
|
431 |
st.markdown(f"<div class='file-name'>{file}</div>", unsafe_allow_html=True)
|
432 |
|
|
|
|
|
|
|
|
|
433 |
col1, col2, col3 = st.columns(3)
|
434 |
|
435 |
with col1:
|
|
|
390 |
st.error(f"❌ Erro ao gerar vídeo:\n\n{e.stderr.decode(errors='ignore')}")
|
391 |
finally:
|
392 |
shutil.rmtree(temp_dir)
|
|
|
393 |
elif pagina == "📂 Gerenciador de Arquivos":
|
394 |
|
395 |
st.header("📂 Vídeos Salvos por Categoria")
|
|
|
429 |
st.markdown("<div class='file-box'>", unsafe_allow_html=True)
|
430 |
st.markdown(f"<div class='file-name'>{file}</div>", unsafe_allow_html=True)
|
431 |
|
432 |
+
# ✅ Visualização do vídeo antes de baixar
|
433 |
+
if file.lower().endswith(('.mp4', '.mov')):
|
434 |
+
st.video(file_path)
|
435 |
+
|
436 |
col1, col2, col3 = st.columns(3)
|
437 |
|
438 |
with col1:
|