Fabrice-TIERCELIN commited on
Commit
83b65bc
·
verified ·
1 Parent(s): c5835b2

print('e.message: ' + err.message) # No GPU is currently available for you after 60s

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -320,7 +320,7 @@ def generate_video(
320
  print("An exception occurred: " + str(err))
321
  caught_error = err
322
  try:
323
- print('e.message: ' + e.message) # No GPU is currently available for you after 60s
324
  except Exception as e2:
325
  print('Failure')
326
  if not str(e).startswith("No GPU is currently available for you after 60s"):
@@ -329,10 +329,6 @@ def generate_video(
329
  except:
330
  print("An error occurred")
331
  caught_error = None
332
- try:
333
- print('e.message: ' + e.message) # No GPU is currently available for you after 60s
334
- except Exception as e2:
335
- print('Failure')
336
  if not str(e).startswith("No GPU is currently available for you after 60s"):
337
  factor -= .003
338
  allocation_time = int(allocation_time) - 1
 
320
  print("An exception occurred: " + str(err))
321
  caught_error = err
322
  try:
323
+ print('e.message: ' + err.message) # No GPU is currently available for you after 60s
324
  except Exception as e2:
325
  print('Failure')
326
  if not str(e).startswith("No GPU is currently available for you after 60s"):
 
329
  except:
330
  print("An error occurred")
331
  caught_error = None
 
 
 
 
332
  if not str(e).startswith("No GPU is currently available for you after 60s"):
333
  factor -= .003
334
  allocation_time = int(allocation_time) - 1