Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,6 @@ img_generator1.to("cuda" if torch.cuda.is_available() else "cpu")
|
|
| 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 |
-
|
| 14 |
# Fonction de génération d’image à partir du texte
|
| 15 |
def text_to_image(prompt, model_name):
|
| 16 |
if model_name == 'kandinsky-2-2-decoder':
|
|
|
|
| 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 |
# Fonction de génération d’image à partir du texte
|
| 14 |
def text_to_image(prompt, model_name):
|
| 15 |
if model_name == 'kandinsky-2-2-decoder':
|