Spaces:
Sleeping
Sleeping
wip
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffus
|
|
| 10 |
|
| 11 |
# Fonction pour redimensionner l'image
|
| 12 |
def resize_image(image, max_size=(512, 512)):
|
| 13 |
-
return image.resize(max_size, Image.
|
| 14 |
|
| 15 |
# Fonction pour appeler l'API Hugging Face et générer une image avec inpainting
|
| 16 |
def inpaint_image(prompt, image, mask):
|
|
|
|
| 10 |
|
| 11 |
# Fonction pour redimensionner l'image
|
| 12 |
def resize_image(image, max_size=(512, 512)):
|
| 13 |
+
return image.resize(max_size, Image.LANCZOS)
|
| 14 |
|
| 15 |
# Fonction pour appeler l'API Hugging Face et générer une image avec inpainting
|
| 16 |
def inpaint_image(prompt, image, mask):
|