alfredplpl commited on
Commit
b9f5d1b
1 Parent(s): e0deb99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -80,7 +80,7 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,disable_auto_prompt_correctio
80
 
81
  if(prompt=="" and neg_prompt==""):
82
  prompt="1girl++, smile--, brown bob+++ hair, brown eyes, sunflowers, sky"
83
- neg_prompt=f"unaestheticXLv31---, photo, deformed, realism, disfigured, low contrast, bad hand"
84
  return prompt, neg_prompt
85
 
86
  splited_prompt=prompt.replace(","," ").replace("_"," ").replace("+"," ").split(" ")
@@ -89,14 +89,14 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,disable_auto_prompt_correctio
89
  for word in human_words:
90
  if( word in splited_prompt):
91
  prompt=f"anime artwork, anime style, {prompt}"
92
- neg_prompt=f"unaestheticXLv31---,{neg_prompt}, photo, deformed, realism, disfigured, low contrast, bad hand"
93
  return prompt, neg_prompt
94
 
95
  animal_words=["cat","dog","bird","pigeon","rabbit","bunny","horse"]
96
  for word in animal_words:
97
  if( word in splited_prompt):
98
  prompt=f"anime style, a {prompt}, 4k, detailed"
99
- neg_prompt=f"{neg_prompt},unaestheticXLv31---"
100
  return prompt, neg_prompt
101
 
102
  background_words=["mount fuji","mt. fuji","building", "buildings", "tokyo", "kyoto", "nara", "shibuya", "shinjuku"]
 
80
 
81
  if(prompt=="" and neg_prompt==""):
82
  prompt="1girl++, smile--, brown bob+++ hair, brown eyes, sunflowers, sky"
83
+ neg_prompt=f"unaestheticXLv31, photo, deformed, realism, disfigured, low contrast, bad hand"
84
  return prompt, neg_prompt
85
 
86
  splited_prompt=prompt.replace(","," ").replace("_"," ").replace("+"," ").split(" ")
 
89
  for word in human_words:
90
  if( word in splited_prompt):
91
  prompt=f"anime artwork, anime style, {prompt}"
92
+ neg_prompt=f"unaestheticXLv31,{neg_prompt}, photo, deformed, realism, disfigured, low contrast, bad hand"
93
  return prompt, neg_prompt
94
 
95
  animal_words=["cat","dog","bird","pigeon","rabbit","bunny","horse"]
96
  for word in animal_words:
97
  if( word in splited_prompt):
98
  prompt=f"anime style, a {prompt}, 4k, detailed"
99
+ neg_prompt=f"{neg_prompt},unaestheticXLv31"
100
  return prompt, neg_prompt
101
 
102
  background_words=["mount fuji","mt. fuji","building", "buildings", "tokyo", "kyoto", "nara", "shibuya", "shinjuku"]