Spaces:
Running
Running
selfitcamera
commited on
Commit
·
82389d4
1
Parent(s):
5d70a92
init
Browse files
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 =
|
80 |
-
wait_s =
|
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)
|