Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def image_generation(prompt):
|
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
|
11 |
# Load the Stable Diffusion 2.1 pipeline (as you're using DiffusionPipeline now)
|
12 |
-
pipeline = DiffusionPipeline.from_pretrained("stabilityai/
|
13 |
torch_dtype=torch.float16 if device == "cuda" else torch.float32,
|
14 |
text_encoder_3=None,
|
15 |
tokenizer_3=None)
|
|
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
|
11 |
# Load the Stable Diffusion 2.1 pipeline (as you're using DiffusionPipeline now)
|
12 |
+
pipeline = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo",
|
13 |
torch_dtype=torch.float16 if device == "cuda" else torch.float32,
|
14 |
text_encoder_3=None,
|
15 |
tokenizer_3=None)
|