Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from groq import Groq
|
|
10 |
|
11 |
def audio_response(text, voice="Sophia"): # Alex
|
12 |
GET_AUDIO_API = os.environ.get("GET_AUDIO_API")
|
13 |
-
url = f"{GET_AUDIO_API}get-audio?text={urllib.parse.quote(text)}&voice={voice.lower()}"
|
14 |
try:
|
15 |
response = requests.get(url)
|
16 |
return gr.Audio("response.content")
|
|
|
10 |
|
11 |
def audio_response(text, voice="Sophia"): # Alex
|
12 |
GET_AUDIO_API = os.environ.get("GET_AUDIO_API")
|
13 |
+
url = f"https://{GET_AUDIO_API}/get-audio?text={urllib.parse.quote(text)}&voice={voice.lower()}"
|
14 |
try:
|
15 |
response = requests.get(url)
|
16 |
return gr.Audio("response.content")
|