Spaces:
Sleeping
Sleeping
Update src/ui.py
Browse files
src/ui.py
CHANGED
|
@@ -27,12 +27,12 @@ def build_ui():
|
|
| 27 |
logo_pos = gr.Radio(["haut-gauche","haut-droite","centre"],
|
| 28 |
label="Position logo", value="haut-gauche")
|
| 29 |
video_presentateur = gr.File(label="🎬 Vidéo ou image du présentateur", type="filepath")
|
| 30 |
-
position_presentateur = gr.Radio(["
|
| 31 |
-
label="Position", value="
|
| 32 |
-
plein = gr.Checkbox(label="Plein écran
|
| 33 |
with gr.Column():
|
| 34 |
-
titre = gr.Textbox(label="Titre", value="
|
| 35 |
-
sous_titre = gr.Textbox(label="Sous-titre", value="
|
| 36 |
theme = gr.Radio(list(THEMES.keys()), label="Thème", value="Bleu Professionnel")
|
| 37 |
langue = gr.Radio(["fr", "nl"], label="Langue de la voix", value="fr")
|
| 38 |
|
|
@@ -55,9 +55,9 @@ def build_ui():
|
|
| 55 |
moteur_voix = gr.Radio(["Edge-TTS (recommandé)", "gTTS (fallback)"],
|
| 56 |
label="Moteur voix", value="Edge-TTS (recommandé)")
|
| 57 |
texte_voix = gr.Textbox(label="Texte voix off", lines=4,
|
| 58 |
-
value="
|
| 59 |
texte_ecran = gr.Textbox(label="Texte à l'écran", lines=4,
|
| 60 |
-
value="
|
| 61 |
btn = gr.Button("🎬 Créer Capsule", variant="primary")
|
| 62 |
|
| 63 |
sortie = gr.Video(label="Capsule générée")
|
|
|
|
| 27 |
logo_pos = gr.Radio(["haut-gauche","haut-droite","centre"],
|
| 28 |
label="Position logo", value="haut-gauche")
|
| 29 |
video_presentateur = gr.File(label="🎬 Vidéo ou image du présentateur", type="filepath")
|
| 30 |
+
position_presentateur = gr.Radio(["bas-droit","bas-gauche","haut-droit","haut-gauche","centre"],
|
| 31 |
+
label="Position", value="bas-droit")
|
| 32 |
+
plein = gr.Checkbox(label="Plein écran", value=False)
|
| 33 |
with gr.Column():
|
| 34 |
+
titre = gr.Textbox(label="Titre", value="")
|
| 35 |
+
sous_titre = gr.Textbox(label="Sous-titre", value="")
|
| 36 |
theme = gr.Radio(list(THEMES.keys()), label="Thème", value="Bleu Professionnel")
|
| 37 |
langue = gr.Radio(["fr", "nl"], label="Langue de la voix", value="fr")
|
| 38 |
|
|
|
|
| 55 |
moteur_voix = gr.Radio(["Edge-TTS (recommandé)", "gTTS (fallback)"],
|
| 56 |
label="Moteur voix", value="Edge-TTS (recommandé)")
|
| 57 |
texte_voix = gr.Textbox(label="Texte voix off", lines=4,
|
| 58 |
+
value="")
|
| 59 |
texte_ecran = gr.Textbox(label="Texte à l'écran", lines=4,
|
| 60 |
+
value="")
|
| 61 |
btn = gr.Button("🎬 Créer Capsule", variant="primary")
|
| 62 |
|
| 63 |
sortie = gr.Video(label="Capsule générée")
|