omarbajouk commited on
Commit
eded3db
·
verified ·
1 Parent(s): 84f0004

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -354,7 +354,7 @@ def build_capsule(titre, sous_titre, texte_voix, texte_ecran, theme,
354
  fond_mode="plein écran",
355
  video_presentateur=None, voix_type="Féminine",
356
  position_presentateur="bottom-right", plein=False,
357
- moteur_voix="Parler-TTS (offline)", langue="fr", speaker=None):
358
 
359
  # 1) TTS (Edge multivoix ou fallback)
360
  try:
@@ -500,8 +500,8 @@ with gr.Blocks(title="Créateur de Capsules CPAS – Version avec vidéo présen
500
  logo_path = gr.Image(label="🏛 Logo", type="filepath")
501
  logo_pos = gr.Radio(["haut-gauche","haut-droite","centre"],
502
  label="Position logo", value="haut-gauche")
503
- # REMPLACEMENT : Image → Video
504
- video_presentateur = gr.Video(label="🎬 Vidéo du présentateur", type="filepath")
505
  position_presentateur = gr.Radio(["bottom-right","bottom-left","top-right","top-left","center"],
506
  label="Position", value="bottom-right")
507
  plein = gr.Checkbox(label="Plein écran présentateur", value=False)
@@ -580,7 +580,7 @@ with gr.Blocks(title="Créateur de Capsules CPAS – Version avec vidéo présen
580
  creer_capsule_ui,
581
  [titre, sous_titre, texte_voix, texte_ecran, theme,
582
  image_fond, fond_mode, logo_path, logo_pos,
583
- video_presentateur, voix_type, position_presentateur, # Changé ici
584
  plein, moteur_voix, langue, speaker_id],
585
  [sortie, srt_out, statut, liste]
586
  )
 
354
  fond_mode="plein écran",
355
  video_presentateur=None, voix_type="Féminine",
356
  position_presentateur="bottom-right", plein=False,
357
+ moteur_voix="Edge-TTS (recommandé)", langue="fr", speaker=None):
358
 
359
  # 1) TTS (Edge multivoix ou fallback)
360
  try:
 
500
  logo_path = gr.Image(label="🏛 Logo", type="filepath")
501
  logo_pos = gr.Radio(["haut-gauche","haut-droite","centre"],
502
  label="Position logo", value="haut-gauche")
503
+ # REMPLACEMENT : Image → Video (sans le paramètre type)
504
+ video_presentateur = gr.Video(label="🎬 Vidéo du présentateur")
505
  position_presentateur = gr.Radio(["bottom-right","bottom-left","top-right","top-left","center"],
506
  label="Position", value="bottom-right")
507
  plein = gr.Checkbox(label="Plein écran présentateur", value=False)
 
580
  creer_capsule_ui,
581
  [titre, sous_titre, texte_voix, texte_ecran, theme,
582
  image_fond, fond_mode, logo_path, logo_pos,
583
+ video_presentateur, voix_type, position_presentateur,
584
  plein, moteur_voix, langue, speaker_id],
585
  [sortie, srt_out, statut, liste]
586
  )