ylacombe HF staff commited on
Commit
3a081a3
1 Parent(s): 7e3e04f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -121,7 +121,7 @@ def generate_speech(history):
121
  except RuntimeError as e :
122
  if "device-side assert" in str(e):
123
  # cannot do anything on cuda device side error, need tor estart
124
- print(f"Exit due to: Unrecoverable exception caused by language:{language} prompt:{prompt}", flush=True)
125
  gr.Warning("Unhandled Exception encounter, please retry in a minute")
126
  print("Cuda device-assert Runtime encountered need restart")
127
 
 
121
  except RuntimeError as e :
122
  if "device-side assert" in str(e):
123
  # cannot do anything on cuda device side error, need tor estart
124
+ print(f"Exit due to: Unrecoverable exception caused by prompt:{sentence}", flush=True)
125
  gr.Warning("Unhandled Exception encounter, please retry in a minute")
126
  print("Cuda device-assert Runtime encountered need restart")
127