Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import torch
|
| 2 |
-
from diffusers import
|
| 3 |
from huggingface_hub import login
|
| 4 |
import os
|
| 5 |
import gradio as gr
|
|
@@ -13,7 +13,7 @@ else:
|
|
| 13 |
|
| 14 |
# Load the Stable Diffusion 3.5 model
|
| 15 |
model_id = "stabilityai/stable-diffusion-3.5-large"
|
| 16 |
-
pipe =
|
| 17 |
pipe.to("cuda")
|
| 18 |
|
| 19 |
# Define the path to the LoRA model
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from diffusers import StableDiffusion3Pipeline
|
| 3 |
from huggingface_hub import login
|
| 4 |
import os
|
| 5 |
import gradio as gr
|
|
|
|
| 13 |
|
| 14 |
# Load the Stable Diffusion 3.5 model
|
| 15 |
model_id = "stabilityai/stable-diffusion-3.5-large"
|
| 16 |
+
pipe = StableDiffusion3Pipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 17 |
pipe.to("cuda")
|
| 18 |
|
| 19 |
# Define the path to the LoRA model
|