update app [experimental]
Browse files
app.py
CHANGED
|
@@ -118,10 +118,10 @@ except Exception as e:
|
|
| 118 |
MAX_SEED = np.iinfo(np.int32).max
|
| 119 |
|
| 120 |
ADAPTER_SPECS = {
|
| 121 |
-
"
|
| 122 |
-
"repo": "
|
| 123 |
-
"weights": "
|
| 124 |
-
"adapter_name": "
|
| 125 |
}
|
| 126 |
}
|
| 127 |
|
|
@@ -258,7 +258,7 @@ with gr.Blocks() as demo:
|
|
| 258 |
lora_adapter = gr.Dropdown(
|
| 259 |
label="Choose Editing Style",
|
| 260 |
choices=list(ADAPTER_SPECS.keys()),
|
| 261 |
-
value="
|
| 262 |
)
|
| 263 |
with gr.Accordion("Advanced Settings", open=False, visible=False):
|
| 264 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
|
@@ -268,7 +268,7 @@ with gr.Blocks() as demo:
|
|
| 268 |
|
| 269 |
gr.Examples(
|
| 270 |
examples=[
|
| 271 |
-
["examples/
|
| 272 |
],
|
| 273 |
inputs=[input_image, prompt, lora_adapter],
|
| 274 |
outputs=[output_image, seed],
|
|
|
|
| 118 |
MAX_SEED = np.iinfo(np.int32).max
|
| 119 |
|
| 120 |
ADAPTER_SPECS = {
|
| 121 |
+
"Multiple-Angles": {
|
| 122 |
+
"repo": "dx8152/Qwen-Edit-2509-Multiple-angles",
|
| 123 |
+
"weights": "镜头转换.safetensors",
|
| 124 |
+
"adapter_name": "multiple-angles"
|
| 125 |
}
|
| 126 |
}
|
| 127 |
|
|
|
|
| 258 |
lora_adapter = gr.Dropdown(
|
| 259 |
label="Choose Editing Style",
|
| 260 |
choices=list(ADAPTER_SPECS.keys()),
|
| 261 |
+
value="Multiple-Angles"
|
| 262 |
)
|
| 263 |
with gr.Accordion("Advanced Settings", open=False, visible=False):
|
| 264 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
|
|
|
| 268 |
|
| 269 |
gr.Examples(
|
| 270 |
examples=[
|
| 271 |
+
["examples/A.jpg", "Rotate the camera 45 degrees to the right.", "Multiple-Angles"],
|
| 272 |
],
|
| 273 |
inputs=[input_image, prompt, lora_adapter],
|
| 274 |
outputs=[output_image, seed],
|