alfredplpl
commited on
Commit
·
eb74a82
1
Parent(s):
697e0b8
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,8 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,cool_japan_type_ui):
|
|
76 |
if(prompt=="" and neg_prompt==""):
|
77 |
prompt=f"{cool_japan_type}, masterpiece, a portrait of a good girl, good pupil, 4k, detailed"
|
78 |
neg_prompt=f"(((deformed))), blurry, ((((bad anatomy)))), {neg_prompt}, bad pupil, disfigured, poorly drawn face, mutation, mutated, (extra limb), (ugly), (poorly drawn hands), bad hands, fused fingers, messy drawing, broken legs censor, low quality, (mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), ((bad eyes)), ui, error, missing fingers, fused fingers, one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit, one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit, long body, uncoordinated body, unnatural body, lowres, jpeg artifacts, 3d, cg, text"
|
79 |
-
|
|
|
80 |
splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
|
81 |
splited_prompt=["a person" if p=="solo" else p for p in splited_prompt]
|
82 |
splited_prompt=["girl" if p=="1girl" else p for p in splited_prompt]
|
|
|
76 |
if(prompt=="" and neg_prompt==""):
|
77 |
prompt=f"{cool_japan_type}, masterpiece, a portrait of a good girl, good pupil, 4k, detailed"
|
78 |
neg_prompt=f"(((deformed))), blurry, ((((bad anatomy)))), {neg_prompt}, bad pupil, disfigured, poorly drawn face, mutation, mutated, (extra limb), (ugly), (poorly drawn hands), bad hands, fused fingers, messy drawing, broken legs censor, low quality, (mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), ((bad eyes)), ui, error, missing fingers, fused fingers, one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit, one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit, long body, uncoordinated body, unnatural body, lowres, jpeg artifacts, 3d, cg, text"
|
79 |
+
return prompt, neg_prompt
|
80 |
+
|
81 |
splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
|
82 |
splited_prompt=["a person" if p=="solo" else p for p in splited_prompt]
|
83 |
splited_prompt=["girl" if p=="1girl" else p for p in splited_prompt]
|