ussarata commited on
Commit
a3d143d
·
1 Parent(s): 629a34e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from diffusers import StableDiffusionPipeline
5
 
6
  model_id = "CompVis/stable-diffusion-v1-4"
7
  device = "cuda" if torch.cuda.is_available() else "cpu"
8
- pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32)
9
  pipe = pipe.to(device)
10
 
11
  def generate(prompt):
 
5
 
6
  model_id = "CompVis/stable-diffusion-v1-4"
7
  device = "cuda" if torch.cuda.is_available() else "cpu"
8
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
9
  pipe = pipe.to(device)
10
 
11
  def generate(prompt):