Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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 |
|