John6666 commited on
Commit
0d0ac30
·
verified ·
1 Parent(s): dc71cc5

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -57,7 +57,10 @@ def gen_fn_gallery(model_str, prompt, gallery):
57
  rand = randint(1, 500)
58
  for i in range(rand):
59
  noise += " "
60
- gallery.append(models_load[model_str](f'{prompt} {noise}'))
 
 
 
61
  return gallery
62
 
63
 
 
57
  rand = randint(1, 500)
58
  for i in range(rand):
59
  noise += " "
60
+ try:
61
+ gallery.append(models_load[model_str](f'{prompt} {noise}'))
62
+ except Exception as e:
63
+ print(e)
64
  return gallery
65
 
66