Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ img_generator1 = AutoPipelineForText2Image.from_pretrained("kandinsky-community/
|
|
| 7 |
img_generator1.to("cuda" if torch.cuda.is_available() else "cpu")
|
| 8 |
|
| 9 |
# Chargement du modèle Stable Diffusion v1.4 depuis Hugging Face
|
| 10 |
-
img_generator2 = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
|
| 11 |
img_generator2.to("cuda" if torch.cuda.is_available() else "cpu")
|
| 12 |
|
| 13 |
|
|
|
|
| 7 |
img_generator1.to("cuda" if torch.cuda.is_available() else "cpu")
|
| 8 |
|
| 9 |
# Chargement du modèle Stable Diffusion v1.4 depuis Hugging Face
|
| 10 |
+
img_generator2 = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
|
| 11 |
img_generator2.to("cuda" if torch.cuda.is_available() else "cpu")
|
| 12 |
|
| 13 |
|