Krebzonide
commited on
Commit
·
f1ebf81
1
Parent(s):
b960b9c
Update app.py
Browse filesI messed around for an hour to find out how the stuff works and updated some values
app.py
CHANGED
@@ -55,12 +55,12 @@ def generate(prompt, neg_prompt, samp_steps, guide_scale, lora_scale, progress=g
|
|
55 |
with gr.Blocks(css=css) as demo:
|
56 |
with gr.Column():
|
57 |
prompt = gr.Textbox(label="Prompt")
|
58 |
-
negative_prompt = gr.Textbox(label="Negative Prompt"
|
59 |
submit_btn = gr.Button("Generate", elem_classes="btn-green")
|
60 |
-
gallery = gr.Gallery(label="Generated images", height=
|
61 |
with gr.Row():
|
62 |
-
samp_steps = gr.Slider(1,
|
63 |
-
guide_scale = gr.Slider(1,
|
64 |
lora_scale = gr.Slider(1, 6, value=1, step=1, label="LoRA power")
|
65 |
|
66 |
submit_btn.click(generate, [prompt, negative_prompt, samp_steps, guide_scale, lora_scale], [gallery], queue=True)
|
|
|
55 |
with gr.Blocks(css=css) as demo:
|
56 |
with gr.Column():
|
57 |
prompt = gr.Textbox(label="Prompt")
|
58 |
+
negative_prompt = gr.Textbox(label="Negative Prompt")
|
59 |
submit_btn = gr.Button("Generate", elem_classes="btn-green")
|
60 |
+
gallery = gr.Gallery(label="Generated images", height=800)
|
61 |
with gr.Row():
|
62 |
+
samp_steps = gr.Slider(1, 50, value=20, step=1, label="Sampling steps")
|
63 |
+
guide_scale = gr.Slider(1, 6, value=3, step=0.5, label="Guidance scale")
|
64 |
lora_scale = gr.Slider(1, 6, value=1, step=1, label="LoRA power")
|
65 |
|
66 |
submit_btn.click(generate, [prompt, negative_prompt, samp_steps, guide_scale, lora_scale], [gallery], queue=True)
|