AlexMia commited on
Commit
aa74a15
·
verified ·
1 Parent(s): cbf542b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")