Daniton commited on
Commit
826a032
·
1 Parent(s): c4d1084

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,8 @@ import torch
4
  import numpy as np
5
 
6
  model_id = "prompthero/openjourney"
7
- pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
 
8
 
9
  def generate_image(prompt):
10
  image = pipe(prompt).images[0]
 
4
  import numpy as np
5
 
6
  model_id = "prompthero/openjourney"
7
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32)
8
+
9
 
10
  def generate_image(prompt):
11
  image = pipe(prompt).images[0]