rafaaa2105 commited on
Commit
809d6c5
1 Parent(s): 49f05ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 StableDiffusionPipeline
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 = StableDiffusionPipeline.from_ckpt(
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,