Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -462,6 +462,32 @@ with gr.Blocks(css=css) as demo:
|
|
| 462 |
step=0.05,
|
| 463 |
value=0.80,
|
| 464 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 465 |
with gr.Accordion(open=False, label="Advanced Options"):
|
| 466 |
negative_prompt = gr.Textbox(
|
| 467 |
label="Negative Prompt",
|
|
|
|
| 462 |
step=0.05,
|
| 463 |
value=0.80,
|
| 464 |
)
|
| 465 |
+
with gr.Accordion("Controlnet"):
|
| 466 |
+
controlnet_selection = gr.CheckboxGroup(
|
| 467 |
+
["pose", "canny", "depth"], label="Controlnet", value=["pose"],
|
| 468 |
+
info="Use pose for skeleton inference, canny for edge detection, and depth for depth map estimation. You can try all three to control the generation process"
|
| 469 |
+
)
|
| 470 |
+
pose_strength = gr.Slider(
|
| 471 |
+
label="Pose strength",
|
| 472 |
+
minimum=0,
|
| 473 |
+
maximum=1.5,
|
| 474 |
+
step=0.05,
|
| 475 |
+
value=0.40,
|
| 476 |
+
)
|
| 477 |
+
canny_strength = gr.Slider(
|
| 478 |
+
label="Canny strength",
|
| 479 |
+
minimum=0,
|
| 480 |
+
maximum=1.5,
|
| 481 |
+
step=0.05,
|
| 482 |
+
value=0.40,
|
| 483 |
+
)
|
| 484 |
+
depth_strength = gr.Slider(
|
| 485 |
+
label="Depth strength",
|
| 486 |
+
minimum=0,
|
| 487 |
+
maximum=1.5,
|
| 488 |
+
step=0.05,
|
| 489 |
+
value=0.40,
|
| 490 |
+
)
|
| 491 |
with gr.Accordion(open=False, label="Advanced Options"):
|
| 492 |
negative_prompt = gr.Textbox(
|
| 493 |
label="Negative Prompt",
|