Spaces:
Runtime error
Runtime error
Commit
•
44f95c7
1
Parent(s):
84f4a02
Update app.py
Browse files
app.py
CHANGED
@@ -55,6 +55,7 @@ with gr.Blocks(css=css, theme=theme) as demo:
|
|
55 |
output = ImageSlider(label="Left: PAG, Right: No PAG", interactive=False)
|
56 |
with gr.Accordion("Advanced Settings", open=False):
|
57 |
guidance_scale = gr.Number(label="Guidance Scale", value=7.0)
|
|
|
58 |
pag_scale = gr.Number(label="Pag Scale", value=3.0)
|
59 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
60 |
seed = gr.Slider(minimum=1, maximum=18446744073709551615, step=1, randomize=True)
|
@@ -65,7 +66,7 @@ with gr.Blocks(css=css, theme=theme) as demo:
|
|
65 |
prompt.submit
|
66 |
],
|
67 |
fn=run,
|
68 |
-
inputs=[prompt, guidance_scale, pag_scale, randomize_seed, seed],
|
69 |
outputs=[output, seed],
|
70 |
)
|
71 |
if __name__ == "__main__":
|
|
|
55 |
output = ImageSlider(label="Left: PAG, Right: No PAG", interactive=False)
|
56 |
with gr.Accordion("Advanced Settings", open=False):
|
57 |
guidance_scale = gr.Number(label="Guidance Scale", value=7.0)
|
58 |
+
negative_prompt = gr.Textbox(label="Negative prompt", info="Is only applied for the CFG part, leave blank for unconditional generation")
|
59 |
pag_scale = gr.Number(label="Pag Scale", value=3.0)
|
60 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
61 |
seed = gr.Slider(minimum=1, maximum=18446744073709551615, step=1, randomize=True)
|
|
|
66 |
prompt.submit
|
67 |
],
|
68 |
fn=run,
|
69 |
+
inputs=[prompt, negative_prompt, guidance_scale, pag_scale, randomize_seed, seed],
|
70 |
outputs=[output, seed],
|
71 |
)
|
72 |
if __name__ == "__main__":
|