MUTSC commited on
Commit
56914ca
1 Parent(s): e1bcafb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from PIL import Image
4
  import torch
5
 
6
  # Load the Stable Diffusion model
7
- model = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
8
  model = model.to("cuda" if torch.cuda.is_available() else "cpu")
9
 
10
  def generate_image(prompt):
 
4
  import torch
5
 
6
  # Load the Stable Diffusion model
7
+ model = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float32)
8
  model = model.to("cuda" if torch.cuda.is_available() else "cpu")
9
 
10
  def generate_image(prompt):