Spaces:
Running
on
Zero
Running
on
Zero
Fabrice-TIERCELIN
commited on
Commit
•
cc91e24
1
Parent(s):
0c78759
Exception identified!!!
Browse files
app.py
CHANGED
@@ -138,12 +138,14 @@ def stage2_process(*args, **kwargs):
|
|
138 |
try:
|
139 |
return restore_in_Xmin(*args, **kwargs)
|
140 |
except Exception as e:
|
|
|
141 |
print('Exception of type ' + str(type(e)))
|
142 |
print("gradio.exceptions.Error: 'No GPU is currently available for you after 60s'")
|
143 |
print('Exception of message ' + str(e))
|
144 |
-
|
145 |
-
|
146 |
-
|
|
|
147 |
raise e
|
148 |
|
149 |
def restore_in_Xmin(
|
|
|
138 |
try:
|
139 |
return restore_in_Xmin(*args, **kwargs)
|
140 |
except Exception as e:
|
141 |
+
# NO_GPU_MESSAGE_INQUEUE
|
142 |
print('Exception of type ' + str(type(e)))
|
143 |
print("gradio.exceptions.Error: 'No GPU is currently available for you after 60s'")
|
144 |
print('Exception of message ' + str(e))
|
145 |
+
if str(e) == "'GPU task aborted'":
|
146 |
+
print('Exception identified!!!')
|
147 |
+
#if str(type(e)) == "<class 'gradio.exceptions.Error'>":
|
148 |
+
#print('Exception of name ' + type(e).__name__)
|
149 |
raise e
|
150 |
|
151 |
def restore_in_Xmin(
|