kaytoo2022 commited on
Commit
66d409b
1 Parent(s): e7793f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,7 +53,7 @@ def run_lora(prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora
53
  width=width,
54
  height=height,
55
  generator=generator,
56
- joint_attention_kwargs={"scale": lora_scale},
57
  ).images[0]
58
 
59
  # Final update (100%)
@@ -90,7 +90,7 @@ with gr.Blocks() as app:
90
  randomize_seed = gr.Checkbox(True, label="Randomize seed")
91
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=example_seed)
92
  lora_scale = gr.Slider(label="LoRA Scale", minimum=0, maximum=1, step=0.01, value=example_lora_scale)
93
- lora_scale_2 = gr.Slider(label="LoRA Scale (GhibSky)", minimum=0, maximum=1, step=0.01, value=example_lora_scale)
94
  with gr.Column(scale=1):
95
  result = gr.Image(label="Generated Image")
96
  gr.Markdown("Generate images using Flux and a text prompt.\nUse `[Just1nGu4n]` in the prompt to activate the LoRA adapter.\n[[non-commercial license, Flux.1 Dev](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)]")
 
53
  width=width,
54
  height=height,
55
  generator=generator,
56
+ # joint_attention_kwargs={"scale": lora_scale},
57
  ).images[0]
58
 
59
  # Final update (100%)
 
90
  randomize_seed = gr.Checkbox(True, label="Randomize seed")
91
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=example_seed)
92
  lora_scale = gr.Slider(label="LoRA Scale", minimum=0, maximum=1, step=0.01, value=example_lora_scale)
93
+ lora_scale_2 = gr.Slider(label="LoRA Scale (GhibSky)", minimum=0, maximum=1, step=0.01, value=example_lora_scale_2)
94
  with gr.Column(scale=1):
95
  result = gr.Image(label="Generated Image")
96
  gr.Markdown("Generate images using Flux and a text prompt.\nUse `[Just1nGu4n]` in the prompt to activate the LoRA adapter.\n[[non-commercial license, Flux.1 Dev](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)]")