Jofthomas HF staff commited on
Commit
a02cfd8
1 Parent(s): 9434313

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. TextGen/router.py +2 -2
TextGen/router.py CHANGED
@@ -17,11 +17,11 @@ from langchain_google_genai import (
17
  from TextGen import app
18
  from gradio_client import Client, handle_file
19
  from typing import List
20
- from elevenlabs.client import ElevenLabs
21
  from elevenlabs import stream
22
 
23
 
24
- Eleven_client = ElevenLabs(
25
  api_key=os.environ["ELEVEN_API_KEY"], # Defaults to ELEVEN_API_KEY
26
  )
27
 
 
17
  from TextGen import app
18
  from gradio_client import Client, handle_file
19
  from typing import List
20
+ from elevenlabs.client import AsyncElevenLabs
21
  from elevenlabs import stream
22
 
23
 
24
+ Eleven_client = AsyncElevenLabs(
25
  api_key=os.environ["ELEVEN_API_KEY"], # Defaults to ELEVEN_API_KEY
26
  )
27