Update app.py
Browse files
app.py
CHANGED
@@ -47,16 +47,16 @@ async def try_on(
|
|
47 |
garment_url = f"{base_url}/static/{garment_filename}"
|
48 |
|
49 |
# Prepare headers and data for the original API
|
50 |
-
|
51 |
"accept": "*/*",
|
52 |
"f": str(uuid.uuid4()).replace("-", ""),
|
53 |
}
|
54 |
|
55 |
-
|
56 |
"humanImg": human_url,
|
57 |
"garment": garment_url,
|
58 |
-
|
59 |
-
|
60 |
}
|
61 |
|
62 |
# Call the ChangeClothesAI API
|
|
|
47 |
garment_url = f"{base_url}/static/{garment_filename}"
|
48 |
|
49 |
# Prepare headers and data for the original API
|
50 |
+
headers = {
|
51 |
"accept": "*/*",
|
52 |
"f": str(uuid.uuid4()).replace("-", ""),
|
53 |
}
|
54 |
|
55 |
+
data = {
|
56 |
"humanImg": human_url,
|
57 |
"garment": garment_url,
|
58 |
+
"garmentDesc": garment_desc,
|
59 |
+
"category": category,
|
60 |
}
|
61 |
|
62 |
# Call the ChangeClothesAI API
|