Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
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'):
|