Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,4 +92,17 @@ async def creer_video_expert(joueur, news_brute):
|
|
| 92 |
# --- LANCEMENT ---
|
| 93 |
if __name__ == "__main__":
|
| 94 |
# Test avec une actu
|
| 95 |
-
asyncio.run(creer_video_expert("Vinicius Jr", "Il vient de recevoir une offre monumentale d'Arabie Saoudite !"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
# --- LANCEMENT ---
|
| 93 |
if __name__ == "__main__":
|
| 94 |
# Test avec une actu
|
| 95 |
+
asyncio.run(creer_video_expert("Vinicius Jr", "Il vient de recevoir une offre monumentale d'Arabie Saoudite !"))
|
| 96 |
+
import streamlit as st
|
| 97 |
+
|
| 98 |
+
st.title("⚽ Studio Prisme Foot V2")
|
| 99 |
+
nom_joueur = st.text_input("Nom du Joueur (ex: Mbappé)")
|
| 100 |
+
actu_texte = st.text_area("L'actualité (ex: Il prolonge son contrat !)")
|
| 101 |
+
|
| 102 |
+
if st.button("🔥 GÉNÉRER LA VIDÉO VIRALE"):
|
| 103 |
+
if nom_joueur and actu_texte:
|
| 104 |
+
with st.spinner("Papa prépare ta vidéo..."):
|
| 105 |
+
asyncio.run(creer_video_expert(nom_joueur, actu_texte))
|
| 106 |
+
st.success("✅ Vidéo prête ! Regarde dans tes fichiers.")
|
| 107 |
+
else:
|
| 108 |
+
st.warning("Fils, remplis le nom et l'actu d'abord !")
|