Warlord-K commited on
Commit
4339615
·
1 Parent(s): ce5f48f

Add Default Negative Prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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 = None # type: ignore
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=25,
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,