Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ def gen_fn(model_str, prompt, negative_prompt):
|
|
36 |
if model_str == 'NA':
|
37 |
return None
|
38 |
noise = str(randint(0, 9999))
|
39 |
-
|
|
|
40 |
|
41 |
def make_me():
|
42 |
with gr.Row():
|
|
|
36 |
if model_str == 'NA':
|
37 |
return None
|
38 |
noise = str(randint(0, 9999))
|
39 |
+
full_prompt = f"{prompt} --negative-prompt {negative_prompt}" if negative_prompt else prompt
|
40 |
+
return models_load[model_str](full_prompt + f" {noise}")
|
41 |
|
42 |
def make_me():
|
43 |
with gr.Row():
|