sudoping01 commited on
Commit
4171ac2
·
verified ·
1 Parent(s): 002d115

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -92,7 +92,7 @@ def initialize_model_once():
92
  start_time = time.time()
93
 
94
  # Use the new import structure from the README
95
- from maliba_ai.tts.inference import BambaraTTSInference
96
 
97
  model = BambaraTTSInference()
98
  speakers = get_speakers_dict()
@@ -321,7 +321,7 @@ def build_interface():
321
  label="Generated Speech",
322
  type="numpy",
323
  interactive=False,
324
- format="wav" # Specify WAV format to help with conversion
325
  )
326
 
327
  status_output = gr.Textbox(
@@ -405,7 +405,7 @@ def main():
405
  """Main function to launch the Gradio interface"""
406
  logger.info("Starting Bambara TTS Gradio interface.")
407
 
408
- # DO NOT preload - let it initialize on first request only (like your working version)
409
  interface = build_interface()
410
  interface.launch(
411
  server_name="0.0.0.0",
 
92
  start_time = time.time()
93
 
94
  # Use the new import structure from the README
95
+ from maliba_ai.tts import BambaraTTSInference
96
 
97
  model = BambaraTTSInference()
98
  speakers = get_speakers_dict()
 
321
  label="Generated Speech",
322
  type="numpy",
323
  interactive=False,
324
+ format="wav"
325
  )
326
 
327
  status_output = gr.Textbox(
 
405
  """Main function to launch the Gradio interface"""
406
  logger.info("Starting Bambara TTS Gradio interface.")
407
 
408
+
409
  interface = build_interface()
410
  interface.launch(
411
  server_name="0.0.0.0",