lixiang46 commited on
Commit
31b8014
1 Parent(s): e73c140
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ 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 = "http://" + os.environ['tryon_url']
23
  token = os.environ['token']
24
 
25
  headers = {'Content-Type': 'application/json', 'token': token}
@@ -129,7 +129,7 @@ with gr.Blocks(css=css) as Tryon:
129
  gr.HTML("""
130
  <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
131
  <div>
132
- <h3>Virtual try-on examples in pairs of person and garment images.</h3>
133
  </div>
134
  </div>
135
  """)
 
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 = "https://" + os.environ['tryon_url']
23
  token = os.environ['token']
24
 
25
  headers = {'Content-Type': 'application/json', 'token': token}
 
129
  gr.HTML("""
130
  <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
131
  <div>
132
+ <h2>Virtual try-on examples in pairs of person and garment images.</h2>
133
  </div>
134
  </div>
135
  """)