sudoping01 commited on
Commit
aa84c77
Β·
verified Β·
1 Parent(s): 7d1c4aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -27
app.py CHANGED
@@ -309,7 +309,7 @@ def build_interface():
309
  choices=SPEAKER_NAMES,
310
  value="Bourama" if "Bourama" in SPEAKER_NAMES else SPEAKER_NAMES[0],
311
  label="πŸ—£οΈ Speaker Voice",
312
- info=f"Choose from {len(SPEAKER_NAMES)} authentic voices (Bourama recommended)"
313
  )
314
 
315
  generate_btn = gr.Button("🎡 Generate Speech", variant="primary", size="lg")
@@ -390,33 +390,11 @@ def build_interface():
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
 
418
  - **🎯 Purpose**: First open-source Text-to-Speech system for Bambara language
419
- - **πŸ—£οΈ Speakers**: {len(SPEAKER_NAMES)} different authentic voices
420
  - **πŸ”Š Quality**: 16kHz neural speech synthesis
421
  - **⚑ Performance**: Model loads once and stays in memory
422
  - **πŸ“± Usage**: Educational, accessibility, and cultural preservation
@@ -424,9 +402,6 @@ def build_interface():
424
  ### 🎭 Available Speakers:
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
 
432
  ---
 
309
  choices=SPEAKER_NAMES,
310
  value="Bourama" if "Bourama" in SPEAKER_NAMES else SPEAKER_NAMES[0],
311
  label="πŸ—£οΈ Speaker Voice",
312
+ info=f"Choose from {len(SPEAKER_NAMES)} authentic Bambara voices"
313
  )
314
 
315
  generate_btn = gr.Button("🎡 Generate Speech", variant="primary", size="lg")
 
390
  )
391
 
392
  with gr.Accordion("About", open=False):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
393
  gr.Markdown(f"""
394
  ## About MALIBA-AI Bambara TTS
395
 
396
  - **🎯 Purpose**: First open-source Text-to-Speech system for Bambara language
397
+ - **πŸ—£οΈ Speakers**: {len(SPEAKER_NAMES)} authentic Bambara voices
398
  - **πŸ”Š Quality**: 16kHz neural speech synthesis
399
  - **⚑ Performance**: Model loads once and stays in memory
400
  - **πŸ“± Usage**: Educational, accessibility, and cultural preservation
 
402
  ### 🎭 Available Speakers:
403
  {', '.join(SPEAKER_NAMES)}
404
 
 
 
 
405
  **License**: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0)
406
 
407
  ---