Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,16 @@ with gr.Blocks(css=css) as demo:
|
|
| 114 |
run_button = gr.Button("Run", scale=0)
|
| 115 |
|
| 116 |
with gr.Row():
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
result = gr.Image(label="Result", show_label=False)
|
| 119 |
|
| 120 |
with gr.Accordion("Advanced Settings", open=False):
|
|
@@ -161,13 +170,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 161 |
step=1,
|
| 162 |
value=50,
|
| 163 |
)
|
| 164 |
-
|
| 165 |
-
label="IP-Adapter Scale",
|
| 166 |
-
minimum=0.0,
|
| 167 |
-
maximum=1.0,
|
| 168 |
-
step=0.01,
|
| 169 |
-
value=0.5,
|
| 170 |
-
)
|
| 171 |
|
| 172 |
gr.Examples(
|
| 173 |
examples=examples,
|
|
|
|
| 114 |
run_button = gr.Button("Run", scale=0)
|
| 115 |
|
| 116 |
with gr.Row():
|
| 117 |
+
with gr.Column():
|
| 118 |
+
ip_adapter_image = gr.Image(label="IP-Adapter Image", type="pil")
|
| 119 |
+
ip_adapter_scale = gr.Slider(
|
| 120 |
+
label="Image influence scale",
|
| 121 |
+
info="IP Adapter Scale, how strong the image should influence the result. Use 1 for creating image variations",
|
| 122 |
+
minimum=0.0,
|
| 123 |
+
maximum=1.0,
|
| 124 |
+
step=0.05,
|
| 125 |
+
value=0.5,
|
| 126 |
+
)
|
| 127 |
result = gr.Image(label="Result", show_label=False)
|
| 128 |
|
| 129 |
with gr.Accordion("Advanced Settings", open=False):
|
|
|
|
| 170 |
step=1,
|
| 171 |
value=50,
|
| 172 |
)
|
| 173 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
|
| 175 |
gr.Examples(
|
| 176 |
examples=examples,
|