Muhammad Anas Akhtar
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ login(token="keyss")
|
|
| 8 |
|
| 9 |
def image_generation(prompt):
|
| 10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 11 |
-
pipeline = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-
|
| 12 |
torch_dtype=torch.float16 if device == "cuda" else torch.float32,
|
| 13 |
text_encoder_3 =None,
|
| 14 |
tokenizer_3 =None)
|
|
|
|
| 8 |
|
| 9 |
def image_generation(prompt):
|
| 10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 11 |
+
pipeline = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0",
|
| 12 |
torch_dtype=torch.float16 if device == "cuda" else torch.float32,
|
| 13 |
text_encoder_3 =None,
|
| 14 |
tokenizer_3 =None)
|