Spaces:
Running
on
Zero
Running
on
Zero
aifeifei798
commited on
Commit
•
734ba91
1
Parent(s):
ecebc12
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ pipe = DiffusionPipeline.from_pretrained("aifeifei798/DarkIdol-flux-v1", torch_d
|
|
15 |
trigger_word = "CNSTLL"
|
16 |
|
17 |
pipe.load_lora_weights(
|
18 |
-
hf_hub_download("aifeifei798/feifei-flux-lora-v1", "feifei.safetensors"),
|
19 |
adapter_name="feifei",
|
20 |
)
|
21 |
|
@@ -26,7 +26,7 @@ pipe.load_lora_weights(
|
|
26 |
|
27 |
pipe.set_adapters(
|
28 |
["feifei","fluxcinestill"],
|
29 |
-
adapter_weights=[0.
|
30 |
)
|
31 |
|
32 |
pipe.fuse_lora(
|
@@ -116,7 +116,7 @@ def infer(
|
|
116 |
# Calculate megapixel count
|
117 |
MEGAPIXEL_COUNT = (width * height) / 1000000
|
118 |
print(f"Generating {MEGAPIXEL_COUNT} megapixel image.")
|
119 |
-
|
120 |
image = pipe(
|
121 |
prompt="",
|
122 |
prompt_2=FULL_PROMPT, # Use the combined prompt
|
|
|
15 |
trigger_word = "CNSTLL"
|
16 |
|
17 |
pipe.load_lora_weights(
|
18 |
+
hf_hub_download("aifeifei798/feifei-flux-lora-v1.1", "feifei-v1.1.safetensors"),
|
19 |
adapter_name="feifei",
|
20 |
)
|
21 |
|
|
|
26 |
|
27 |
pipe.set_adapters(
|
28 |
["feifei","fluxcinestill"],
|
29 |
+
adapter_weights=[0.8,1],
|
30 |
)
|
31 |
|
32 |
pipe.fuse_lora(
|
|
|
116 |
# Calculate megapixel count
|
117 |
MEGAPIXEL_COUNT = (width * height) / 1000000
|
118 |
print(f"Generating {MEGAPIXEL_COUNT} megapixel image.")
|
119 |
+
FULL_PROMPT = f"feifei, real model girl in real life, {FULL_PROMPT}, slight smile, Master of Light and Shadow."
|
120 |
image = pipe(
|
121 |
prompt="",
|
122 |
prompt_2=FULL_PROMPT, # Use the combined prompt
|