Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def load_model(model_name):
|
|
| 17 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 18 |
model_id, torch_dtype=torch.float16
|
| 19 |
)
|
| 20 |
-
pipe = pipe.to("
|
| 21 |
return pipe
|
| 22 |
|
| 23 |
# Load the default model
|
|
|
|
| 17 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 18 |
model_id, torch_dtype=torch.float16
|
| 19 |
)
|
| 20 |
+
pipe = pipe.to("cpu") # Use GPU
|
| 21 |
return pipe
|
| 22 |
|
| 23 |
# Load the default model
|