DemiPoto commited on
Commit
1a35139
·
verified ·
1 Parent(s): 30c6dc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -137,7 +137,12 @@ def gen_fn(model_str, prompt):
137
  if model_str == 'NA':
138
  return None
139
  noise = str(randint(0, 9999))
140
- return models_load[model_str](f'{prompt} {noise}')
 
 
 
 
 
141
 
142
  def make_me():
143
  # with gr.Tab('The Dream'):
 
137
  if model_str == 'NA':
138
  return None
139
  noise = str(randint(0, 9999))
140
+ try :
141
+ m=models_load[model_str](f'{prompt} {noise}')
142
+ except Exception as error :
143
+ print(error + " : " + model_str)
144
+
145
+ return m
146
 
147
  def make_me():
148
  # with gr.Tab('The Dream'):