Spaces:
Running
on
Zero
Running
on
Zero
Update feifeilib/feifeiprompt.py
Browse files- feifeilib/feifeiprompt.py +1 -11
feifeilib/feifeiprompt.py
CHANGED
@@ -14,7 +14,7 @@ artists = [artist.strip() for artist in artists]
|
|
14 |
|
15 |
|
16 |
def feifeiprompt(
|
17 |
-
randomize_seed, seed, prompt, quality_select, styles_Radio
|
18 |
):
|
19 |
# 处理随机种子
|
20 |
if randomize_seed:
|
@@ -36,16 +36,6 @@ def feifeiprompt(
|
|
36 |
if quality_select:
|
37 |
prompt += ", masterpiece, best quality, very aesthetic, absurdres"
|
38 |
|
39 |
-
if FooocusExpansion_select:
|
40 |
-
# Define the replacement string
|
41 |
-
replacement = " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese slim girl, with light makeup, gazing deeply into the camera, "
|
42 |
-
|
43 |
-
# Perform the replacements with re.IGNORECASE
|
44 |
-
prompt = re.sub(r"girl", replacement, prompt, flags=re.IGNORECASE)
|
45 |
-
prompt = re.sub(r"young woman", replacement, prompt, flags=re.IGNORECASE)
|
46 |
-
prompt = re.sub(r"woman", replacement, prompt, flags=re.IGNORECASE)
|
47 |
-
prompt = re.sub(r"model", replacement, prompt, flags=re.IGNORECASE)
|
48 |
-
|
49 |
if styles_Radio:
|
50 |
style_name = styles_Radio
|
51 |
for style in config.style_list:
|
|
|
14 |
|
15 |
|
16 |
def feifeiprompt(
|
17 |
+
randomize_seed, seed, prompt, quality_select, styles_Radio
|
18 |
):
|
19 |
# 处理随机种子
|
20 |
if randomize_seed:
|
|
|
36 |
if quality_select:
|
37 |
prompt += ", masterpiece, best quality, very aesthetic, absurdres"
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
if styles_Radio:
|
40 |
style_name = styles_Radio
|
41 |
for style in config.style_list:
|