Spaces:
Sleeping
Sleeping
kaytoo2022
commited on
Commit
•
29592ba
1
Parent(s):
2c6eafa
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ torch.backends.cuda.matmul.allow_tf32 = True
|
|
13 |
base_model = "black-forest-labs/FLUX.1-dev"
|
14 |
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
15 |
|
16 |
-
lora_repo = "kaytoo2022/jguan_35-flux"
|
17 |
trigger_word = "" # Leave trigger_word blank if not used.
|
18 |
pipe.load_lora_weights(lora_repo, adapter_name='jguan')
|
19 |
|
@@ -93,7 +93,7 @@ with gr.Blocks() as app:
|
|
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 `[
|
97 |
|
98 |
# Automatically load example data and image when the interface is launched
|
99 |
app.load(load_example, inputs=[], outputs=[prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora_scale, lora_scale_2, result])
|
|
|
13 |
base_model = "black-forest-labs/FLUX.1-dev"
|
14 |
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
15 |
|
16 |
+
lora_repo = "kaytoo2022/jguan_35-flux-2"
|
17 |
trigger_word = "" # Leave trigger_word blank if not used.
|
18 |
pipe.load_lora_weights(lora_repo, adapter_name='jguan')
|
19 |
|
|
|
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)]")
|
97 |
|
98 |
# Automatically load example data and image when the interface is launched
|
99 |
app.load(load_example, inputs=[], outputs=[prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora_scale, lora_scale_2, result])
|