Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,8 +115,8 @@ pipe.load_lora_weights("Daverrrr75/QWEN_MCNL",
|
|
| 115 |
pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
| 116 |
weight_name="loras/Meta4.safetensors",
|
| 117 |
adapter_name="multiple-angles")
|
| 118 |
-
pipe.load_lora_weights("
|
| 119 |
-
weight_name="
|
| 120 |
adapter_name="light-restoration")
|
| 121 |
pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
| 122 |
weight_name="loras2/consistence_edit_v2.safetensors",
|
|
@@ -127,8 +127,8 @@ pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
|
| 127 |
pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
| 128 |
weight_name="loras-2/qwen真实+一致性-A2R_2509_Base.safetensors",
|
| 129 |
adapter_name="edit-skin")
|
| 130 |
-
pipe.load_lora_weights("
|
| 131 |
-
weight_name="
|
| 132 |
adapter_name="next-scene")
|
| 133 |
pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
| 134 |
weight_name="loras/Qwen4Play_v2.safetensors",
|
|
@@ -183,7 +183,7 @@ def infer(
|
|
| 183 |
pipe.set_adapters(["anime"], adapter_weights=[1.0])
|
| 184 |
elif lora_adapter == "Multiple-Angles":
|
| 185 |
pipe.set_adapters(["multiple-angles"], adapter_weights=[1.0])
|
| 186 |
-
elif lora_adapter == "
|
| 187 |
pipe.set_adapters(["light-restoration"], adapter_weights=[1.0])
|
| 188 |
elif lora_adapter == "Qwen-lora-nsfw":
|
| 189 |
pipe.set_adapters(["relight", "multi-angle-lighting"], adapter_weights=[1.0, 1.0])
|
|
@@ -220,11 +220,11 @@ def infer(
|
|
| 220 |
|
| 221 |
return result, seed
|
| 222 |
|
| 223 |
-
@spaces.GPU(duration=
|
| 224 |
def infer_example(input_image, prompt, lora_adapter):
|
| 225 |
input_pil = input_image.convert("RGB")
|
| 226 |
guidance_scale = 1.0
|
| 227 |
-
steps =
|
| 228 |
result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps)
|
| 229 |
return result, seed
|
| 230 |
|
|
@@ -260,7 +260,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 260 |
with gr.Row():
|
| 261 |
lora_adapter = gr.Dropdown(
|
| 262 |
label="Choose Editing Style",
|
| 263 |
-
choices=["QWEN_MCNL", "Multiple-Angles", "
|
| 264 |
value="QWEN_MCNL"
|
| 265 |
)
|
| 266 |
with gr.Accordion("Advanced Settings", open=False, visible=False):
|
|
|
|
| 115 |
pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
| 116 |
weight_name="loras/Meta4.safetensors",
|
| 117 |
adapter_name="multiple-angles")
|
| 118 |
+
pipe.load_lora_weights("PetruZetta/nsfw_qwen_lora",
|
| 119 |
+
weight_name="Qwen-MysticXXX-v1.safetensors",
|
| 120 |
adapter_name="light-restoration")
|
| 121 |
pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
| 122 |
weight_name="loras2/consistence_edit_v2.safetensors",
|
|
|
|
| 127 |
pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
| 128 |
weight_name="loras-2/qwen真实+一致性-A2R_2509_Base.safetensors",
|
| 129 |
adapter_name="edit-skin")
|
| 130 |
+
pipe.load_lora_weights("lovis93/next-scene-qwen-image-lora-2509",
|
| 131 |
+
weight_name="next-scene_lora-v2-3000.safetensors",
|
| 132 |
adapter_name="next-scene")
|
| 133 |
pipe.load_lora_weights("wiikoo/Qwen-lora-nsfw",
|
| 134 |
weight_name="loras/Qwen4Play_v2.safetensors",
|
|
|
|
| 183 |
pipe.set_adapters(["anime"], adapter_weights=[1.0])
|
| 184 |
elif lora_adapter == "Multiple-Angles":
|
| 185 |
pipe.set_adapters(["multiple-angles"], adapter_weights=[1.0])
|
| 186 |
+
elif lora_adapter == "Mystic":
|
| 187 |
pipe.set_adapters(["light-restoration"], adapter_weights=[1.0])
|
| 188 |
elif lora_adapter == "Qwen-lora-nsfw":
|
| 189 |
pipe.set_adapters(["relight", "multi-angle-lighting"], adapter_weights=[1.0, 1.0])
|
|
|
|
| 220 |
|
| 221 |
return result, seed
|
| 222 |
|
| 223 |
+
@spaces.GPU(duration=120)
|
| 224 |
def infer_example(input_image, prompt, lora_adapter):
|
| 225 |
input_pil = input_image.convert("RGB")
|
| 226 |
guidance_scale = 1.0
|
| 227 |
+
steps = 19
|
| 228 |
result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps)
|
| 229 |
return result, seed
|
| 230 |
|
|
|
|
| 260 |
with gr.Row():
|
| 261 |
lora_adapter = gr.Dropdown(
|
| 262 |
label="Choose Editing Style",
|
| 263 |
+
choices=["QWEN_MCNL", "Multiple-Angles", "Mystic", "Jib", "V14-10", "Qwen-lora-nsfw", "Next-Scene", "A2R_2509_Base"],
|
| 264 |
value="QWEN_MCNL"
|
| 265 |
)
|
| 266 |
with gr.Accordion("Advanced Settings", open=False, visible=False):
|