lixiang46 commited on
Commit
4ad0645
1 Parent(s): 7d12775
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -35,7 +35,8 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
35
 
36
  result_img = None
37
  try:
38
- response = requests.post(url, headers=headers, data=json.dumps(data), timeout=120)
 
39
  print("response code", response.status_code)
40
  if response.status_code == 200:
41
  print(response.text)
 
35
 
36
  result_img = None
37
  try:
38
+ session = requests.Session()
39
+ response = session.post(url, headers=headers, data=json.dumps(data), timeout=60)
40
  print("response code", response.status_code)
41
  if response.status_code == 200:
42
  print(response.text)