Spaces:
Runtime error
Runtime error
Commit
·
8362c2f
1
Parent(s):
dc96563
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ def text2Speech(story) :
|
|
| 42 |
|
| 43 |
def query(payload):
|
| 44 |
response = requests.post(API_URL, headers=headers, json=payload)
|
| 45 |
-
|
| 46 |
-
|
| 47 |
return response.json()
|
| 48 |
|
| 49 |
output = query({
|
|
|
|
| 42 |
|
| 43 |
def query(payload):
|
| 44 |
response = requests.post(API_URL, headers=headers, json=payload)
|
| 45 |
+
with open('audio.flac','wb') as file:
|
| 46 |
+
file.write(response.content)
|
| 47 |
return response.json()
|
| 48 |
|
| 49 |
output = query({
|