Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,9 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
|
|
22 |
url = "http://" + os.environ['tryon_url']
|
23 |
token = os.environ['token']
|
24 |
cookie = os.environ['Cookie']
|
|
|
25 |
|
26 |
-
headers = {'Content-Type': 'application/json', 'token': token, 'Cookie': cookie}
|
27 |
data = {
|
28 |
"clothImage": encoded_garment_img,
|
29 |
"humanImage": encoded_person_img,
|
|
|
22 |
url = "http://" + os.environ['tryon_url']
|
23 |
token = os.environ['token']
|
24 |
cookie = os.environ['Cookie']
|
25 |
+
referer = os.environ['referer']
|
26 |
|
27 |
+
headers = {'Content-Type': 'application/json', 'token': token, 'Cookie': cookie, 'referer': referer}
|
28 |
data = {
|
29 |
"clothImage": encoded_garment_img,
|
30 |
"humanImage": encoded_person_img,
|