fffiloni commited on
Commit
5146743
·
verified ·
1 Parent(s): bd72465

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
- from diffusers import DiffusionPipeline
3
  import torch
4
 
5
 
6
- pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
7
 
8
 
9
  def infer(prompt):
 
1
  import gradio as gr
2
+ from diffusers import StableDiffusionPipeline
3
  import torch
4
 
5
 
6
+ pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float32)
7
 
8
 
9
  def infer(prompt):