Update app.py
Browse files
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("
|
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
|