Ronaldo commited on
Commit
3b67889
·
1 Parent(s): 941b080

first commit

Browse files
Files changed (1) hide show
  1. app.py +13 -10
app.py CHANGED
@@ -234,16 +234,19 @@ with gr.Blocks(title="🎙️ MMS ASR/TTS - Speech AI", theme=gr.themes.Soft())
234
  outputs=[audio_output, info_tts]
235
  )
236
 
237
- # Exemples
238
- gr.Examples(
239
- examples=[
240
- ["Hello world", "English (eng)"],
241
- ["Àbọ̀ wa", "Yoruba (yor)"],
242
- ["Bonjour", "English (eng)"],
243
- ],
244
- inputs=[text_input, language_tts],
245
- label="💡 Exemples"
246
- )
 
 
 
247
 
248
  # ============= TAB 3: INFOS =============
249
  with gr.TabItem("ℹ️ À propos", id="about"):
 
234
  outputs=[audio_output, info_tts]
235
  )
236
 
237
+ # Exemples (optionnel - commenté pour éviter les erreurs)
238
+ # Uncomment pour activer après test
239
+ # gr.Examples(
240
+ # examples=[
241
+ # ["Hello world", "English (eng)"],
242
+ # ["Àbọ̀ wa", "Yoruba (yor)"],
243
+ # ["Bonjour", "English (eng)"],
244
+ # ],
245
+ # fn=synthesize_speech,
246
+ # inputs=[text_input, language_tts],
247
+ # outputs=[audio_output, info_tts],
248
+ # label="💡 Exemples"
249
+ # )
250
 
251
  # ============= TAB 3: INFOS =============
252
  with gr.TabItem("ℹ️ À propos", id="about"):