Jofthomas HF staff commited on
Commit
6fe80a0
·
1 Parent(s): 336c637

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. TextGen/router.py +1 -1
TextGen/router.py CHANGED
@@ -177,7 +177,7 @@ def generate_voice(message: VoiceMessage = None):
177
  def audio_stream():
178
  try:
179
  # Generate the audio stream from ElevenLabs
180
- for chunk in client.generate(text=message.input, stream=True):
181
  yield chunk
182
  except Exception as e:
183
  raise HTTPException(status_code=500, detail=str(e))
 
177
  def audio_stream():
178
  try:
179
  # Generate the audio stream from ElevenLabs
180
+ for chunk in Eleven_client.generate(text=message.input, stream=True):
181
  yield chunk
182
  except Exception as e:
183
  raise HTTPException(status_code=500, detail=str(e))