lemonada commited on
Commit
ff463d8
·
1 Parent(s): 928ad22
Files changed (1) hide show
  1. app.py +1 -1
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.ANTIALIAS)
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):