Pijush2023 commited on
Commit
69fedc7
·
verified ·
1 Parent(s): 233b6c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- print(response.text)
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