auh11 commited on
Commit
baa489c
1 Parent(s): 0e7b829

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def generate_and_display_image(prompt_text):
11
  device = "cuda" if torch.cuda.is_available() else "cpu"
12
 
13
  # Create the diffusion pipeline
14
- pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
15
  pipe = pipe.to(device)
16
 
17
  try:
 
11
  device = "cuda" if torch.cuda.is_available() else "cpu"
12
 
13
  # Create the diffusion pipeline
14
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32) # Changed torch.float16 to torch.float32
15
  pipe = pipe.to(device)
16
 
17
  try: