Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -306,9 +306,10 @@ def generate_audio_elevenlabs(text):
|
|
306 |
for chunk in response.iter_content(chunk_size=1024):
|
307 |
f.write(chunk)
|
308 |
temp_audio_path = f.name
|
|
|
309 |
return temp_audio_path
|
310 |
else:
|
311 |
-
|
312 |
return None
|
313 |
|
314 |
# Gradio Blocks interface
|
|
|
306 |
for chunk in response.iter_content(chunk_size=1024):
|
307 |
f.write(chunk)
|
308 |
temp_audio_path = f.name
|
309 |
+
logging.debug(f"Audio saved to {temp_audio_path}")
|
310 |
return temp_audio_path
|
311 |
else:
|
312 |
+
logging.error(f"Error generating audio: {response.text}")
|
313 |
return None
|
314 |
|
315 |
# Gradio Blocks interface
|