Update app.py
Browse files
app.py
CHANGED
|
@@ -296,32 +296,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 296 |
value=100, # Replace with defaults that work for your model
|
| 297 |
)
|
| 298 |
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
# gr.on(
|
| 302 |
-
# triggers=[run_button.click, prompt.submit],
|
| 303 |
-
# fn=infer,
|
| 304 |
-
# inputs=[
|
| 305 |
-
# model_id,
|
| 306 |
-
# prompt,
|
| 307 |
-
# negative_prompt,
|
| 308 |
-
# seed,
|
| 309 |
-
# randomize_seed,
|
| 310 |
-
# width,
|
| 311 |
-
# height,
|
| 312 |
-
# guidance_scale,
|
| 313 |
-
# num_inference_steps,
|
| 314 |
-
# lora_scale,
|
| 315 |
-
# use_controlnet,
|
| 316 |
-
# controlnet_image,
|
| 317 |
-
# controlnet_strength,
|
| 318 |
-
# controlnet_mode,
|
| 319 |
-
# use_ip_adapter,
|
| 320 |
-
# ip_adapter_image,
|
| 321 |
-
# ip_adapter_scale,
|
| 322 |
-
# ],
|
| 323 |
-
# outputs=[result, seed],
|
| 324 |
-
# )
|
| 325 |
|
| 326 |
gr.on(
|
| 327 |
triggers=[run_button.click, prompt.submit],
|
|
@@ -336,7 +311,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 336 |
height,
|
| 337 |
guidance_scale,
|
| 338 |
num_inference_steps,
|
| 339 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 340 |
],
|
| 341 |
outputs=[seed],
|
| 342 |
)
|
|
|
|
| 296 |
value=100, # Replace with defaults that work for your model
|
| 297 |
)
|
| 298 |
|
| 299 |
+
gr.Examples(examples=examples, inputs=[prompt])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 300 |
|
| 301 |
gr.on(
|
| 302 |
triggers=[run_button.click, prompt.submit],
|
|
|
|
| 311 |
height,
|
| 312 |
guidance_scale,
|
| 313 |
num_inference_steps,
|
| 314 |
+
lora_scale,
|
| 315 |
+
use_controlnet,
|
| 316 |
+
controlnet_image,
|
| 317 |
+
controlnet_strength,
|
| 318 |
+
controlnet_mode,
|
| 319 |
+
use_ip_adapter,
|
| 320 |
+
ip_adapter_image,
|
| 321 |
+
ip_adapter_scale,
|
| 322 |
],
|
| 323 |
outputs=[seed],
|
| 324 |
)
|