frogleo commited on
Commit
bfedece
·
1 Parent(s): 58cfe29

增加默认提示词

Browse files
Files changed (3) hide show
  1. __pycache__/utils.cpython-310.pyc +0 -0
  2. app.py +2 -0
  3. config.py +1 -0
__pycache__/utils.cpython-310.pyc CHANGED
Binary files a/__pycache__/utils.cpython-310.pyc and b/__pycache__/utils.cpython-310.pyc differ
 
app.py CHANGED
@@ -19,6 +19,7 @@ from config import (
19
  MODEL,
20
  MIN_IMAGE_SIZE,
21
  MAX_IMAGE_SIZE,
 
22
  DEFAULT_NEGATIVE_PROMPT,
23
  scheduler_list,
24
  )
@@ -217,6 +218,7 @@ with gr.Blocks(css=custom_css).queue() as demo:
217
  label="Prompt",
218
  max_lines=5,
219
  placeholder="Enter your prompt",
 
220
  )
221
  negative_prompt = gr.Text(
222
  label="Negative prompt",
 
19
  MODEL,
20
  MIN_IMAGE_SIZE,
21
  MAX_IMAGE_SIZE,
22
+ DEFAULT_PROMPT,
23
  DEFAULT_NEGATIVE_PROMPT,
24
  scheduler_list,
25
  )
 
218
  label="Prompt",
219
  max_lines=5,
220
  placeholder="Enter your prompt",
221
+ value=DEFAULT_PROMPT,
222
  )
223
  negative_prompt = gr.Text(
224
  label="Negative prompt",
config.py CHANGED
@@ -1,4 +1,5 @@
1
  MODEL = "cagliostrolab/animagine-xl-4.0"
 
2
  DEFAULT_NEGATIVE_PROMPT = "lowres, bad anatomy, bad hands, text, error, missing finger, extra digits, fewer digits, cropped, worst quality, low quality, low score, bad score, average score, signature, watermark, username, blurry"
3
  MIN_IMAGE_SIZE = 512
4
  MAX_IMAGE_SIZE = 2048
 
1
  MODEL = "cagliostrolab/animagine-xl-4.0"
2
+ DEFAULT_PROMPT = "masterpiece, high score, great score, absurdres, 1girl, hatsune miku, vocaloid, blue eyes, blue hair, bowl, can, chopsticks, collared shirt, detached sleeves, eating, elbow rest, fish \(food\), food, holding, holding chopsticks, katsudon \(food\), long hair, long sleeves, looking at viewer, meal, nail polish, necktie, noodles, onigiri, plate, ramen, sashimi, shirt, shrimp, shrimp tempura, sleeveless, sleeveless shirt, solo, spring onion, tempura, twintails"
3
  DEFAULT_NEGATIVE_PROMPT = "lowres, bad anatomy, bad hands, text, error, missing finger, extra digits, fewer digits, cropped, worst quality, low quality, low score, bad score, average score, signature, watermark, username, blurry"
4
  MIN_IMAGE_SIZE = 512
5
  MAX_IMAGE_SIZE = 2048