Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -460,6 +460,15 @@ with gr.Blocks(css="style.css") as demo:
|
|
460 |
with gr.Row():
|
461 |
a3 = gr.Slider(label="- Curly Hair +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
|
462 |
a4 = gr.Slider(label="- Thick Eyebrows +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
|
464 |
|
465 |
|
@@ -467,22 +476,22 @@ with gr.Blocks(css="style.css") as demo:
|
|
467 |
|
468 |
|
469 |
|
470 |
-
with gr.Accordion("Advanced Options", open=False):
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
|
487 |
|
488 |
# with gr.Tab("Editing"):
|
|
|
460 |
with gr.Row():
|
461 |
a3 = gr.Slider(label="- Curly Hair +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
|
462 |
a4 = gr.Slider(label="- Thick Eyebrows +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
|
463 |
+
|
464 |
+
with gr.Accordion("Advanced Options", open=False):
|
465 |
+
with gr.Column():
|
466 |
+
cfg = gr.Slider(label="CFG", value=3.0, step=0.1, minimum=0, maximum=10, interactive=True)
|
467 |
+
steps = gr.Slider(label="Inference Steps", value=50, step=1, minimum=0, maximum=100, interactive=True)
|
468 |
+
injection_step = gr.Slider(label="Injection Step", value=800, step=1, minimum=0, maximum=1000, interactive=True)
|
469 |
+
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="low quality, blurry, unfinished, nudity", value="low quality, blurry, unfinished, nudity")
|
470 |
+
|
471 |
+
submit = gr.Button("Generate")
|
472 |
|
473 |
|
474 |
|
|
|
476 |
|
477 |
|
478 |
|
479 |
+
# with gr.Accordion("Advanced Options", open=False):
|
480 |
+
# with gr.Tab("Inversion"):
|
481 |
+
# with gr.Row():
|
482 |
+
# lr = gr.Number(value=1e-1, label="Learning Rate", interactive=True)
|
483 |
+
# pcs = gr.Slider(label="# Principal Components", value=10000, step=1, minimum=1, maximum=10000, interactive=True)
|
484 |
+
# with gr.Row():
|
485 |
+
# epochs = gr.Slider(label="Epochs", value=400, step=1, minimum=1, maximum=2000, interactive=True)
|
486 |
+
# weight_decay = gr.Number(value=1e-10, label="Weight Decay", interactive=True)
|
487 |
+
# with gr.Tab("Sampling"):
|
488 |
+
# with gr.Row():
|
489 |
+
# cfg1= gr.Slider(label="CFG", value=3.0, step=0.1, minimum=0, maximum=10, interactive=True)
|
490 |
+
# steps1 = gr.Slider(label="Inference Steps", value=50, step=1, minimum=0, maximum=100, interactive=True)
|
491 |
+
# seed1 = gr.Number(value=5, label="Seed", precision=0, interactive=True)
|
492 |
+
# with gr.Row():
|
493 |
+
# negative_prompt1 = gr.Textbox(label="Negative Prompt", placeholder="low quality, blurry, unfinished, nudity, weapon", value="low quality, blurry, unfinished, nudity, weapon")
|
494 |
+
# injection_step = gr.Slider(label="Injection Step", value=800, step=1, minimum=0, maximum=1000, interactive=True)
|
495 |
|
496 |
|
497 |
# with gr.Tab("Editing"):
|