lixiang46 commited on
Commit
82b1749
1 Parent(s): 01db67e
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -19,7 +19,8 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
19
 
20
  url = "http://" + os.environ['tryon_url']
21
  token = os.environ['token']
22
- headers = {'Content-Type': 'application/json', 'token': token}
 
23
  data = {
24
  "clothImage": encoded_garment_img,
25
  "humanImage": encoded_person_img,
@@ -52,15 +53,15 @@ human_list_path = [os.path.join(example_path,"human",human) for human in human_l
52
  css="""
53
  #col-left {
54
  margin: 0 auto;
55
- max-width: 500px;
56
  }
57
  #col-mid {
58
  margin: 0 auto;
59
- max-width: 500px;
60
  }
61
  #col-right {
62
  margin: 0 auto;
63
- max-width: 700px;
64
  }
65
  #button {
66
  color: blue;
 
19
 
20
  url = "http://" + os.environ['tryon_url']
21
  token = os.environ['token']
22
+ cookie = os.environ['Cookie']
23
+ headers = {'Content-Type': 'application/json', 'token': token, 'Cookie': cookie}
24
  data = {
25
  "clothImage": encoded_garment_img,
26
  "humanImage": encoded_person_img,
 
53
  css="""
54
  #col-left {
55
  margin: 0 auto;
56
+ max-width: 350px;
57
  }
58
  #col-mid {
59
  margin: 0 auto;
60
+ max-width: 350px;
61
  }
62
  #col-right {
63
  margin: 0 auto;
64
+ max-width: 600px;
65
  }
66
  #button {
67
  color: blue;