My-AI-Projects commited on
Commit
4cdc76c
·
verified ·
1 Parent(s): 913c1cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -1,12 +1,9 @@
1
  import gradio as gr
2
  import torch
3
- from diffusers import KolorsPipeline
4
 
5
- from diffusers import FluxPipeline
6
-
7
- pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
8
- pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-Logo-Design", weight_name="FLUX-dev-lora-Logo-Design.safetensors")
9
- pipe.fuse_lora(lora_scale=0.8)
10
  pipe.to("cuda" if torch.cuda.is_available() else "cpu")
11
 
12
  # Function to generate image from prompt
 
1
  import gradio as gr
2
  import torch
3
+ from diffusers import DiffusionPipeline
4
 
5
+ pipe = DiffusionPipeline.from_pretrained("fluently/Fluently-XL-v2")
6
+ pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2")
 
 
 
7
  pipe.to("cuda" if torch.cuda.is_available() else "cpu")
8
 
9
  # Function to generate image from prompt