Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -25,10 +25,10 @@ def feifeimodload():
|
|
25 |
"aifeifei798/DarkIdol-flux-v1", torch_dtype=dtype
|
26 |
).to(device)
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
pipe.load_lora_weights(
|
33 |
hf_hub_download("aifeifei798/sldr_flux_nsfw_v2-studio", "sldr_flux_nsfw_v2-studio.safetensors"),
|
34 |
adapter_name="sldr_flux_nsfw_v2",
|
@@ -55,9 +55,9 @@ def infer(prompt="", styles_Radio="(None)", feife_select = False, bigboobs_sele
|
|
55 |
Duke86Syl_lora_name=[]
|
56 |
adapter_weights_num=[]
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
|
62 |
if bigboobs_select:
|
63 |
Duke86Syl_lora_name.append("big-boobs-clothed-v2")
|
@@ -164,7 +164,7 @@ with gr.Blocks(css=css) as demo:
|
|
164 |
)
|
165 |
# 定义提交按钮
|
166 |
feifei_chat_btn = gr.Button(value="Gen Prompt")
|
167 |
-
feife_select = gr.Checkbox(label="FeiFei Expansion")
|
168 |
bigboobs_select = gr.Checkbox(label="bigboobs", value=True)
|
169 |
with gr.Accordion("Advanced Settings", open=False):
|
170 |
|
|
|
25 |
"aifeifei798/DarkIdol-flux-v1", torch_dtype=dtype
|
26 |
).to(device)
|
27 |
|
28 |
+
pipe.load_lora_weights(
|
29 |
+
hf_hub_download("aifeifei798/feifei-flux-lora-v1.1", "feifei-v1.1.safetensors"),
|
30 |
+
adapter_name="feifei",
|
31 |
+
)
|
32 |
pipe.load_lora_weights(
|
33 |
hf_hub_download("aifeifei798/sldr_flux_nsfw_v2-studio", "sldr_flux_nsfw_v2-studio.safetensors"),
|
34 |
adapter_name="sldr_flux_nsfw_v2",
|
|
|
55 |
Duke86Syl_lora_name=[]
|
56 |
adapter_weights_num=[]
|
57 |
|
58 |
+
if feife_select:
|
59 |
+
Duke86Syl_lora_name.append("feifei")
|
60 |
+
adapter_weights_num.append(num_feifei)
|
61 |
|
62 |
if bigboobs_select:
|
63 |
Duke86Syl_lora_name.append("big-boobs-clothed-v2")
|
|
|
164 |
)
|
165 |
# 定义提交按钮
|
166 |
feifei_chat_btn = gr.Button(value="Gen Prompt")
|
167 |
+
feife_select = gr.Checkbox(label="FeiFei Expansion", value=True)
|
168 |
bigboobs_select = gr.Checkbox(label="bigboobs", value=True)
|
169 |
with gr.Accordion("Advanced Settings", open=False):
|
170 |
|