Spaces:
Runtime error
Runtime error
Add Default Negative Prompt
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def generate(
|
|
84 |
generator = torch.Generator().manual_seed(seed)
|
85 |
|
86 |
if not use_negative_prompt:
|
87 |
-
negative_prompt =
|
88 |
if not use_prompt_2:
|
89 |
prompt_2 = None # type: ignore
|
90 |
if not use_negative_prompt_2:
|
@@ -210,7 +210,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
210 |
minimum=10,
|
211 |
maximum=100,
|
212 |
step=1,
|
213 |
-
value=
|
214 |
)
|
215 |
with gr.Row(visible=False) as refiner_params:
|
216 |
guidance_scale_refiner = gr.Slider(
|
@@ -289,8 +289,6 @@ with gr.Blocks(css="style.css") as demo:
|
|
289 |
use_prompt_2,
|
290 |
use_negative_prompt_2,
|
291 |
seed,
|
292 |
-
# 1024,
|
293 |
-
# 1024,
|
294 |
width,
|
295 |
height,
|
296 |
guidance_scale_base,
|
|
|
84 |
generator = torch.Generator().manual_seed(seed)
|
85 |
|
86 |
if not use_negative_prompt:
|
87 |
+
negative_prompt = "cartoon, painting, blurry, ugly" # type: default prompt
|
88 |
if not use_prompt_2:
|
89 |
prompt_2 = None # type: ignore
|
90 |
if not use_negative_prompt_2:
|
|
|
210 |
minimum=10,
|
211 |
maximum=100,
|
212 |
step=1,
|
213 |
+
value=20,
|
214 |
)
|
215 |
with gr.Row(visible=False) as refiner_params:
|
216 |
guidance_scale_refiner = gr.Slider(
|
|
|
289 |
use_prompt_2,
|
290 |
use_negative_prompt_2,
|
291 |
seed,
|
|
|
|
|
292 |
width,
|
293 |
height,
|
294 |
guidance_scale_base,
|