Spaces:
Runtime error
Runtime error
lixiang46
commited on
Commit
•
f26d335
1
Parent(s):
31b8014
test
Browse files
app.py
CHANGED
@@ -19,9 +19,10 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
|
|
19 |
encoded_garment_img = cv2.imencode('.jpg', cv2.cvtColor(garment_img, cv2.COLOR_RGB2BGR))[1].tobytes()
|
20 |
encoded_garment_img = base64.b64encode(encoded_garment_img).decode('utf-8')
|
21 |
|
22 |
-
url = "
|
23 |
token = os.environ['token']
|
24 |
-
|
|
|
25 |
headers = {'Content-Type': 'application/json', 'token': token}
|
26 |
data = {
|
27 |
"clothImage": encoded_garment_img,
|
|
|
19 |
encoded_garment_img = cv2.imencode('.jpg', cv2.cvtColor(garment_img, cv2.COLOR_RGB2BGR))[1].tobytes()
|
20 |
encoded_garment_img = base64.b64encode(encoded_garment_img).decode('utf-8')
|
21 |
|
22 |
+
url = "http://" + os.environ['tryon_url']
|
23 |
token = os.environ['token']
|
24 |
+
print(url)
|
25 |
+
print(token)
|
26 |
headers = {'Content-Type': 'application/json', 'token': token}
|
27 |
data = {
|
28 |
"clothImage": encoded_garment_img,
|