ZainMalik0925
commited on
Commit
•
0138119
1
Parent(s):
8c04ad0
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def resize_image(image, max_size=(512, 512)):
|
|
27 |
# Function to process images using Hugging Face API
|
28 |
def virtual_tryon(subject_img, front_img):
|
29 |
url = "https://api-inference.huggingface.co/models/ramim36/Kolors-Virtual-Try-On"
|
30 |
-
headers = {"Authorization": f"Bearer {os.getenv('HF_API_TOKEN')}"}
|
31 |
|
32 |
# Resize images before sending
|
33 |
resized_subject = resize_image(subject_img)
|
|
|
27 |
# Function to process images using Hugging Face API
|
28 |
def virtual_tryon(subject_img, front_img):
|
29 |
url = "https://api-inference.huggingface.co/models/ramim36/Kolors-Virtual-Try-On"
|
30 |
+
headers = {"Authorization": f"Bearer {os.getenv('HF_API_TOKEN')}"}
|
31 |
|
32 |
# Resize images before sending
|
33 |
resized_subject = resize_image(subject_img)
|