sudoping01 commited on
Commit
7d1c4aa
·
verified ·
1 Parent(s): 6fde7cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -10
app.py CHANGED
@@ -390,6 +390,28 @@ def build_interface():
390
  )
391
 
392
  with gr.Accordion("About", open=False):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
393
  gr.Markdown(f"""
394
  ## About MALIBA-AI Bambara TTS
395
 
@@ -403,16 +425,7 @@ def build_interface():
403
  {', '.join(SPEAKER_NAMES)}
404
 
405
  ### 🎯 Speaker Characteristics:
406
- - **Bourama**: Most stable and accurate (recommended)
407
- - **Adama**: Natural conversational tone
408
- - **Moussa**: Clear pronunciation for educational content
409
- - **Modibo**: Expressive delivery for storytelling
410
- - **Seydou**: Balanced characteristics for general use
411
- - **Amadou**: Warm and friendly voice
412
- - **Bakary**: Deep, authoritative tone
413
- - **Ngolo**: Youthful and energetic
414
- - **Ibrahima**: Calm and measured delivery
415
- - **Amara**: Melodic and smooth
416
 
417
  **License**: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0)
418
 
 
390
  )
391
 
392
  with gr.Accordion("About", open=False):
393
+ # Generate speaker characteristics dynamically based on available speakers
394
+ speaker_characteristics = {
395
+ "Bourama": "Most stable and accurate (recommended)",
396
+ "Adama": "Natural conversational tone",
397
+ "Moussa": "Clear pronunciation for educational content",
398
+ "Modibo": "Expressive delivery for storytelling",
399
+ "Seydou": "Balanced characteristics for general use",
400
+ "Amadou": "Warm and friendly voice",
401
+ "Bakary": "Deep, authoritative tone",
402
+ "Ngolo": "Youthful and energetic",
403
+ "Ibrahima": "Calm and measured delivery",
404
+ "Amara": "Melodic and smooth"
405
+ }
406
+
407
+ # Only show characteristics for available speakers
408
+ available_characteristics = []
409
+ for speaker in SPEAKER_NAMES:
410
+ if speaker in speaker_characteristics:
411
+ available_characteristics.append(f"- **{speaker}**: {speaker_characteristics[speaker]}")
412
+
413
+ characteristics_text = "\n ".join(available_characteristics)
414
+
415
  gr.Markdown(f"""
416
  ## About MALIBA-AI Bambara TTS
417
 
 
425
  {', '.join(SPEAKER_NAMES)}
426
 
427
  ### 🎯 Speaker Characteristics:
428
+ {characteristics_text}
 
 
 
 
 
 
 
 
 
429
 
430
  **License**: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0)
431