khurrameycon commited on
Commit
c1e6aff
·
verified ·
1 Parent(s): 8b8b484

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def tts_inference(text, engine, model_file, voice_file, speed=1.0):
105
  voicepack.eval()
106
 
107
  # 6) Generate TTS
108
- audio, phonemes = gen_fn(model, response_from_llama.choices[0].message, voicepack, speed=speed)
109
  sr = 22050 # or your actual sample rate
110
 
111
  return (sr, audio) # Gradio expects (sample_rate, np_array)
 
105
  voicepack.eval()
106
 
107
  # 6) Generate TTS
108
+ audio, phonemes = gen_fn(model, response_from_llama.choices[0].message['content'], voicepack, speed=speed)
109
  sr = 22050 # or your actual sample rate
110
 
111
  return (sr, audio) # Gradio expects (sample_rate, np_array)