Update TextGen/router.py
Browse files- 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
|
21 |
from elevenlabs import stream
|
22 |
|
23 |
|
24 |
-
Eleven_client =
|
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 |
|