Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ def predict(prompt, style, audio_file_pth, agree):
|
|
131 |
None,
|
132 |
)
|
133 |
else:
|
134 |
-
decoded_bytes = base64.b64decode(json_data['result']['base64'])
|
135 |
with open(save_path, 'wb') as f:
|
136 |
f.write(decoded_bytes)
|
137 |
|
|
|
131 |
None,
|
132 |
)
|
133 |
else:
|
134 |
+
decoded_bytes = base64.b64decode(json_data['result']['base64'].encode('utf-8'))
|
135 |
with open(save_path, 'wb') as f:
|
136 |
f.write(decoded_bytes)
|
137 |
|