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