Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -221,7 +221,7 @@ def function(Textbox, Textbox2, Textbox3, Dropdown):
|
|
221 |
response = requests.post("https://api.carterlabs.ai/speak", headers=headers, json=voice)
|
222 |
output = response.json()
|
223 |
print(output)
|
224 |
-
output_url = output["audio"]
|
225 |
def download_audio(output_url, output_file):
|
226 |
urllib.request.urlretrieve(output_url, output_file)
|
227 |
|
|
|
221 |
response = requests.post("https://api.carterlabs.ai/speak", headers=headers, json=voice)
|
222 |
output = response.json()
|
223 |
print(output)
|
224 |
+
output_url = output["output"]["audio"]
|
225 |
def download_audio(output_url, output_file):
|
226 |
urllib.request.urlretrieve(output_url, output_file)
|
227 |
|