Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
26a0ac1
1
Parent(s):
523ae5e
Update app.py
Browse files
app.py
CHANGED
@@ -339,11 +339,6 @@ with gr.Blocks(css="custom.css") as demo:
|
|
339 |
height=784
|
340 |
)
|
341 |
with gr.Column():
|
342 |
-
prompt_title = gr.Markdown(
|
343 |
-
value="### Click on a LoRA in the gallery to select it",
|
344 |
-
visible=True,
|
345 |
-
elem_id="selected_lora",
|
346 |
-
)
|
347 |
with gr.Row():
|
348 |
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="A person", elem_id="prompt")
|
349 |
button = gr.Button("Run", elem_id="run_button")
|
@@ -354,14 +349,18 @@ with gr.Blocks(css="custom.css") as demo:
|
|
354 |
result = gr.Image(
|
355 |
interactive=False, label="Generated Image", elem_id="result-image"
|
356 |
)
|
357 |
-
face_strength = gr.Slider(0, 1, value=0.85, step=0.01, label="Face strength", info="Higher values increase the face likeness but reduce the creative liberty of the models")
|
358 |
-
image_strength = gr.Slider(0, 1, value=0.15, step=0.01, label="Image strength", info="Higher values increase the similarity with the structure/colors of the original photo")
|
359 |
with gr.Accordion("Advanced options", open=False):
|
360 |
negative = gr.Textbox(label="Negative Prompt")
|
361 |
weight = gr.Slider(0, 10, value=0.9, step=0.1, label="LoRA weight")
|
|
|
|
|
362 |
guidance_scale = gr.Slider(0, 50, value=7, step=0.1, label="Guidance Scale")
|
363 |
depth_control_scale = gr.Slider(0, 1, value=0.8, step=0.01, label="Zoe Depth ControlNet strenght")
|
364 |
-
|
|
|
|
|
|
|
|
|
365 |
order_gallery.change(
|
366 |
fn=swap_gallery,
|
367 |
inputs=[order_gallery, gr_sdxl_loras],
|
|
|
339 |
height=784
|
340 |
)
|
341 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
342 |
with gr.Row():
|
343 |
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="A person", elem_id="prompt")
|
344 |
button = gr.Button("Run", elem_id="run_button")
|
|
|
349 |
result = gr.Image(
|
350 |
interactive=False, label="Generated Image", elem_id="result-image"
|
351 |
)
|
|
|
|
|
352 |
with gr.Accordion("Advanced options", open=False):
|
353 |
negative = gr.Textbox(label="Negative Prompt")
|
354 |
weight = gr.Slider(0, 10, value=0.9, step=0.1, label="LoRA weight")
|
355 |
+
face_strength = gr.Slider(0, 1, value=0.85, step=0.01, label="Face strength", info="Higher values increase the face likeness but reduce the creative liberty of the models")
|
356 |
+
image_strength = gr.Slider(0, 1, value=0.15, step=0.01, label="Image strength", info="Higher values increase the similarity with the structure/colors of the original photo")
|
357 |
guidance_scale = gr.Slider(0, 50, value=7, step=0.1, label="Guidance Scale")
|
358 |
depth_control_scale = gr.Slider(0, 1, value=0.8, step=0.01, label="Zoe Depth ControlNet strenght")
|
359 |
+
prompt_title = gr.Markdown(
|
360 |
+
value="### Click on a LoRA in the gallery to select it",
|
361 |
+
visible=True,
|
362 |
+
elem_id="selected_lora",
|
363 |
+
)
|
364 |
order_gallery.change(
|
365 |
fn=swap_gallery,
|
366 |
inputs=[order_gallery, gr_sdxl_loras],
|