Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -217,7 +217,7 @@ def function(Textbox, Textbox2, Textbox3, Dropdown):
|
|
217 |
}
|
218 |
response = requests.post("https://api.carterlabs.ai/speak", headers=headers, json=data)
|
219 |
output = response.json()
|
220 |
-
output_url = output[0]
|
221 |
def download_audio(output_url, output_file):
|
222 |
urllib.request.urlretrieve(output_url, output_file)
|
223 |
|
|
|
217 |
}
|
218 |
response = requests.post("https://api.carterlabs.ai/speak", headers=headers, json=data)
|
219 |
output = response.json()
|
220 |
+
output_url = output["file_url"][0]
|
221 |
def download_audio(output_url, output_file):
|
222 |
urllib.request.urlretrieve(output_url, output_file)
|
223 |
|