Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -243,6 +243,7 @@ with gr.Blocks(theme=theme, css="style.css") as demo:
|
|
243 |
maximum=1,
|
244 |
step=0.01,
|
245 |
value=0.7,
|
|
|
246 |
)
|
247 |
lora_scale2 = gr.Slider(
|
248 |
info="The closer to 1, the more it will resemble LoRA, but errors may be visible.",
|
@@ -251,6 +252,7 @@ with gr.Blocks(theme=theme, css="style.css") as demo:
|
|
251 |
maximum=1,
|
252 |
step=0.01,
|
253 |
value=0.7,
|
|
|
254 |
)
|
255 |
url = gr.Text(label='URL (Img2Img)', placeholder='e.g https://example.com/image.png')
|
256 |
controlnet_img = gr.Text(label='URL (Controlnet)', placeholder='e.g https://example.com/image.png')
|
@@ -411,8 +413,8 @@ with gr.Blocks(theme=theme, css="style.css") as demo:
|
|
411 |
)
|
412 |
use_lora2.change(
|
413 |
fn=lambda x: gr.update(visible=x),
|
414 |
-
inputs=use_lora2,
|
415 |
-
outputs=lora2,
|
416 |
queue=False,
|
417 |
api_name=False,
|
418 |
)
|
|
|
243 |
maximum=1,
|
244 |
step=0.01,
|
245 |
value=0.7,
|
246 |
+
visible=False,
|
247 |
)
|
248 |
lora_scale2 = gr.Slider(
|
249 |
info="The closer to 1, the more it will resemble LoRA, but errors may be visible.",
|
|
|
252 |
maximum=1,
|
253 |
step=0.01,
|
254 |
value=0.7,
|
255 |
+
visible=False,
|
256 |
)
|
257 |
url = gr.Text(label='URL (Img2Img)', placeholder='e.g https://example.com/image.png')
|
258 |
controlnet_img = gr.Text(label='URL (Controlnet)', placeholder='e.g https://example.com/image.png')
|
|
|
413 |
)
|
414 |
use_lora2.change(
|
415 |
fn=lambda x: gr.update(visible=x),
|
416 |
+
inputs=[use_lora2, use_lora],
|
417 |
+
outputs=[lora2, lora],
|
418 |
queue=False,
|
419 |
api_name=False,
|
420 |
)
|