Geek7 commited on
Commit
a96537b
·
1 Parent(s): 93fe74a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import torch
4
 
5
  # Load model and move it to CUDA
6
  pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
7
- pipe.to("cuda")
8
 
9
  def generate_image(prompt):
10
  # Generate image using the model
 
4
 
5
  # Load model and move it to CUDA
6
  pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
7
+ pipe.to("cpu")
8
 
9
  def generate_image(prompt):
10
  # Generate image using the model