update app
Browse files
app.py
CHANGED
|
@@ -124,7 +124,12 @@ ADAPTER_SPECS = {
|
|
| 124 |
"repo": "dx8152/Qwen-Edit-2509-Multiple-angles",
|
| 125 |
"weights": "镜头转换.safetensors",
|
| 126 |
"adapter_name": "multiple-angles"
|
| 127 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
}
|
| 129 |
|
| 130 |
LOADED_ADAPTERS = set()
|
|
@@ -260,7 +265,7 @@ def infer_example(input_image, prompt, lora_adapter):
|
|
| 260 |
css="""
|
| 261 |
#col-container {
|
| 262 |
margin: 0 auto;
|
| 263 |
-
max-width:
|
| 264 |
}
|
| 265 |
#main-title h1 {font-size: 2.1em !important;}
|
| 266 |
"""
|
|
@@ -293,7 +298,7 @@ with gr.Blocks() as demo:
|
|
| 293 |
lora_adapter = gr.Dropdown(
|
| 294 |
label="Choose Editing Style",
|
| 295 |
choices=list(ADAPTER_SPECS.keys()),
|
| 296 |
-
value="
|
| 297 |
)
|
| 298 |
with gr.Accordion("Advanced Settings", open=False, visible=False):
|
| 299 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
|
@@ -304,6 +309,7 @@ with gr.Blocks() as demo:
|
|
| 304 |
# Note: Cache examples might need to be False if using Rerun paths that are temporary
|
| 305 |
gr.Examples(
|
| 306 |
examples=[
|
|
|
|
| 307 |
["examples/A.jpeg", "Rotate the camera 45 degrees to the right.", "Multiple-Angles"],
|
| 308 |
],
|
| 309 |
inputs=[input_image, prompt, lora_adapter],
|
|
|
|
| 124 |
"repo": "dx8152/Qwen-Edit-2509-Multiple-angles",
|
| 125 |
"weights": "镜头转换.safetensors",
|
| 126 |
"adapter_name": "multiple-angles"
|
| 127 |
+
},
|
| 128 |
+
"Photo-to-Anime": {
|
| 129 |
+
"repo": "autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime",
|
| 130 |
+
"weights": "Qwen-Image-Edit-2509-Photo-to-Anime_000001000.safetensors",
|
| 131 |
+
"adapter_name": "photo-to-anime"
|
| 132 |
+
},
|
| 133 |
}
|
| 134 |
|
| 135 |
LOADED_ADAPTERS = set()
|
|
|
|
| 265 |
css="""
|
| 266 |
#col-container {
|
| 267 |
margin: 0 auto;
|
| 268 |
+
max-width: 980px;
|
| 269 |
}
|
| 270 |
#main-title h1 {font-size: 2.1em !important;}
|
| 271 |
"""
|
|
|
|
| 298 |
lora_adapter = gr.Dropdown(
|
| 299 |
label="Choose Editing Style",
|
| 300 |
choices=list(ADAPTER_SPECS.keys()),
|
| 301 |
+
value="Photo-to-Anime"
|
| 302 |
)
|
| 303 |
with gr.Accordion("Advanced Settings", open=False, visible=False):
|
| 304 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
|
|
|
| 309 |
# Note: Cache examples might need to be False if using Rerun paths that are temporary
|
| 310 |
gr.Examples(
|
| 311 |
examples=[
|
| 312 |
+
["examples/B.jpg", "Transform into anime.", "Photo-to-Anime"],
|
| 313 |
["examples/A.jpeg", "Rotate the camera 45 degrees to the right.", "Multiple-Angles"],
|
| 314 |
],
|
| 315 |
inputs=[input_image, prompt, lora_adapter],
|