Spaces:
Running
on
T4
Running
on
T4
gorkemgoknar
commited on
Commit
•
93ae48c
1
Parent(s):
bea7e9f
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
|
|
34 |
speaker_wav=speaker_wav,
|
35 |
language=language,
|
36 |
)
|
37 |
-
except RuntimeError:
|
38 |
if "device-side" in e.message:
|
39 |
# cannot do anything on cuda device side error, need tor estart
|
40 |
gr.Warning("Unhandled Exception encounter, please retry in a minute")
|
|
|
34 |
speaker_wav=speaker_wav,
|
35 |
language=language,
|
36 |
)
|
37 |
+
except RuntimeError as e:
|
38 |
if "device-side" in e.message:
|
39 |
# cannot do anything on cuda device side error, need tor estart
|
40 |
gr.Warning("Unhandled Exception encounter, please retry in a minute")
|