selfitcamera commited on
Commit
82389d4
·
1 Parent(s): 5d70a92
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,8 +76,8 @@ def onClick(cloth_id, pose_image, pose_id, size, request: gr.Request):
76
  if taskId==0:
77
  return None, "fail to public you task", ""
78
 
79
- max_try = 1
80
- wait_s = 30
81
  for i in range(max_try):
82
  time.sleep(wait_s)
83
  state = getInfRes(ApiUrl, OpenId, ApiKey, client_ip, timeId)
 
76
  if taskId==0:
77
  return None, "fail to public you task", ""
78
 
79
+ max_try = 30
80
+ wait_s = 3
81
  for i in range(max_try):
82
  time.sleep(wait_s)
83
  state = getInfRes(ApiUrl, OpenId, ApiKey, client_ip, timeId)