techbeam101 commited on
Commit
c303cdf
·
verified ·
1 Parent(s): 9c33716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def generate_audio(prompt: str, voice: str, emotion: str, seed: int) -> bytes:
81
  print(f"Error during audio generation: {e}")
82
  error_details = ""
83
  if hasattr(e, 'response') and e.response is not None:
84
- error_details = e.response.text[:200]
85
  raise gr.Error(f"Failed to generate audio. Please wait for a second and try again.")
86
  except Exception as e:
87
  print(f"Unexpected error during audio generation: {e}")
 
81
  print(f"Error during audio generation: {e}")
82
  error_details = ""
83
  if hasattr(e, 'response') and e.response is not None:
84
+ error_details = e.response.text[:20000]
85
  raise gr.Error(f"Failed to generate audio. Please wait for a second and try again.")
86
  except Exception as e:
87
  print(f"Unexpected error during audio generation: {e}")