Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
-
from diffusers import
|
| 4 |
|
| 5 |
-
|
| 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
|