multimodalart HF staff commited on
Commit
0b9fed4
·
verified ·
1 Parent(s): 54adba3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,13 +61,13 @@ with gr.Blocks(css=css, theme=theme) as demo:
61
  button = gr.Button("Generate", min_width=120)
62
  output = ImageSlider(label="Left: PAG, Right: No PAG", interactive=False)
63
  with gr.Accordion("Advanced Settings", open=False):
64
- lora = gr.Textbox(label="Custom LoRA path", info="Load a custom LoRA from Hugging Face to use PAG with")
65
  guidance_scale = gr.Number(label="CFG Guidance Scale", info="The guidance scale for CFG, ignored if no prompt is entered (unconditional generation)", value=7.0)
66
  negative_prompt = gr.Textbox(label="Negative prompt", info="Is only applied for the CFG part, leave blank for unconditional generation")
67
  pag_scale = gr.Number(label="Pag Scale", value=3.0)
68
  pag_layers = gr.Dropdown(label="Model layers to apply Pag to", info="mid is the one used on the paper, up and down blocks seem unstable", choices=["up", "mid", "down"], multiselect=True, value="mid")
69
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
70
  seed = gr.Slider(minimum=1, maximum=9007199254740991, step=1, randomize=True)
 
71
  gr.Examples(fn=run, examples=[" ", "an insect robot preparing a delicious meal, anime style", "a photo of a group of friends at an amusement park"], inputs=prompt, outputs=[output, seed], cache_examples=True)
72
  gr.on(
73
  triggers=[
 
61
  button = gr.Button("Generate", min_width=120)
62
  output = ImageSlider(label="Left: PAG, Right: No PAG", interactive=False)
63
  with gr.Accordion("Advanced Settings", open=False):
 
64
  guidance_scale = gr.Number(label="CFG Guidance Scale", info="The guidance scale for CFG, ignored if no prompt is entered (unconditional generation)", value=7.0)
65
  negative_prompt = gr.Textbox(label="Negative prompt", info="Is only applied for the CFG part, leave blank for unconditional generation")
66
  pag_scale = gr.Number(label="Pag Scale", value=3.0)
67
  pag_layers = gr.Dropdown(label="Model layers to apply Pag to", info="mid is the one used on the paper, up and down blocks seem unstable", choices=["up", "mid", "down"], multiselect=True, value="mid")
68
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
69
  seed = gr.Slider(minimum=1, maximum=9007199254740991, step=1, randomize=True)
70
+ lora = gr.Textbox(label="Custom LoRA path", info="Load a custom LoRA from Hugging Face to use PAG with")
71
  gr.Examples(fn=run, examples=[" ", "an insect robot preparing a delicious meal, anime style", "a photo of a group of friends at an amusement park"], inputs=prompt, outputs=[output, seed], cache_examples=True)
72
  gr.on(
73
  triggers=[