Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,11 @@ async def try_on(
|
|
46 |
base_url = "https://tejani-tryapi.hf.space" # e.g., https://your-username-your-space.hf.space
|
47 |
human_url = f"{base_url}/static/{human_filename}"
|
48 |
garment_url = f"{base_url}/static/{garment_filename}"
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
# Call the ChangeClothesAI API
|
51 |
response = requests.post(CHANGE_CLOTHES_API, headers=headers, data=data)
|
|
|
46 |
base_url = "https://tejani-tryapi.hf.space" # e.g., https://your-username-your-space.hf.space
|
47 |
human_url = f"{base_url}/static/{human_filename}"
|
48 |
garment_url = f"{base_url}/static/{garment_filename}"
|
49 |
+
|
50 |
+
# Prepare headers and data for the original API
|
51 |
+
headers = {
|
52 |
+
"accept": "*/*"
|
53 |
+
}
|
54 |
|
55 |
# Call the ChangeClothesAI API
|
56 |
response = requests.post(CHANGE_CLOTHES_API, headers=headers, data=data)
|