Daniton commited on
Commit
19fcbaa
1 Parent(s): 3e6114b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -5,6 +5,7 @@ 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):
 
5
 
6
  model_id = "prompthero/openjourney"
7
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32)
8
+ pipe = pipe.to("cpu")
9
 
10
 
11
  def generate_image(prompt):