Spaces:
Sleeping
Sleeping
rafaaa2105
commited on
Commit
•
809d6c5
1
Parent(s):
49f05ba
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import torch
|
2 |
from tqdm import tqdm
|
3 |
from diffusers.models import AutoencoderKL
|
4 |
-
from diffusers import
|
5 |
import gradio as gr
|
6 |
import requests
|
7 |
import spaces
|
@@ -92,7 +92,7 @@ def load_model(model, lora="", use_lora=False, progress=gr.Progress(track_tqdm=T
|
|
92 |
torch_dtype=torch.float16,
|
93 |
)
|
94 |
|
95 |
-
pipeline =
|
96 |
model,
|
97 |
vae=vae,
|
98 |
torch_dtype=torch.float16,
|
|
|
1 |
import torch
|
2 |
from tqdm import tqdm
|
3 |
from diffusers.models import AutoencoderKL
|
4 |
+
from diffusers import StableDiffusionXLPipeline
|
5 |
import gradio as gr
|
6 |
import requests
|
7 |
import spaces
|
|
|
92 |
torch_dtype=torch.float16,
|
93 |
)
|
94 |
|
95 |
+
pipeline = StableDiffusionPipelineXL.from_single_file(
|
96 |
model,
|
97 |
vae=vae,
|
98 |
torch_dtype=torch.float16,
|