Aboubacar OUATTARA - kaira commited on
Commit
497b5ce
1 Parent(s): 96b57d0

add examples

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -142,8 +142,8 @@ def main():
142
  fn=_fn,
143
  inputs=[
144
  gr.Dropdown(label="Source Language", choices=lang_codes, value='French'),
145
- gr.Textbox(label="Text to Translate", lines=3, value="Entrez un texte ici pour la traduire en Bambara"),
146
- gr.Dropdown(label="Voice", choices=audio_files, value=audio_files[0]),
147
  gr.Audio(label="Clone your voice (optional)", type="numpy", format="wav", elem_id="clone_voice_input"),
148
  # gr.Dropdown(
149
  # choices=["Midpoint", "RK4", "Euler"], value="Midpoint",
@@ -160,8 +160,9 @@ def main():
160
  gr.Audio(label="Enhanced Audio", format='wav')
161
  ],
162
  examples=[
163
- ['English', "He was the first person I asked to test it.", "male_2.wav", None],
164
- ['French', "Thomas Isidore Noël Sankara est fils d'un père Peul originaire du village de Sitoèga dans le département de Bokin dans la province du Passoré — et d'une mère mossi, et grandit entre valeurs militaires et religiosité chrétienne.", "male_3.wav", None],
 
165
  ],
166
  css="#clone_voice_input .audio-container button.boundedheight { height: 147px !important; }",
167
  title="Bambara Translation and Text to Speech with Audio Enhancement",
 
142
  fn=_fn,
143
  inputs=[
144
  gr.Dropdown(label="Source Language", choices=lang_codes, value='French'),
145
+ gr.Textbox(label="Text to Translate", lines=3, value="Vous pouvez entrer un texte ici et il sera traduite en Bambara."),
146
+ gr.Dropdown(label="Voice", choices=audio_files, value="male_2.wav"),
147
  gr.Audio(label="Clone your voice (optional)", type="numpy", format="wav", elem_id="clone_voice_input"),
148
  # gr.Dropdown(
149
  # choices=["Midpoint", "RK4", "Euler"], value="Midpoint",
 
160
  gr.Audio(label="Enhanced Audio", format='wav')
161
  ],
162
  examples=[
163
+ ['English', "Thomas Isidore Noël Sankara is the son of a Peul father originally from the village of Sitoèga in the department of Bokin in the province of Passoré — and a Mossi mother, and grew up between military values and religiosity.", "male_2.wav", None],
164
+ ['French', "Vous ne pouviez subvenir à ses besoins. Il lui fallait une garde.", "male_3.wav", None],
165
+ ['French', "Vous pouvez entrer un texte ici et il sera traduite en Bambara.", "male_2.wav", None],
166
  ],
167
  css="#clone_voice_input .audio-container button.boundedheight { height: 147px !important; }",
168
  title="Bambara Translation and Text to Speech with Audio Enhancement",