Fabrice-TIERCELIN commited on
Commit
cc91e24
1 Parent(s): 0c78759

Exception identified!!!

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- #print(NO_GPU_MESSAGE_INQUEUE)
145
- if str(type(e)) == "<class 'gradio.exceptions.Error'>":
146
- print('Exception of name ' + type(e).__name__)
 
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(