Spaces:
Running
Running
selfitcamera
commited on
Commit
·
0b056ba
1
Parent(s):
9d08368
init
Browse files
app.py
CHANGED
@@ -80,8 +80,8 @@ def onClick(cloth_image, pose_image, high_resolution, request: gr.Request):
|
|
80 |
print(client_ip, public_res['mid_result'])
|
81 |
yield public_res['mid_result'], f"task is processing, task id: {public_res['id']}, {public_res['msg']}", ""
|
82 |
|
83 |
-
max_try = 120
|
84 |
-
wait_s =
|
85 |
for i in range(max_try):
|
86 |
time.sleep(wait_s)
|
87 |
state = getInfRes(public_res['id'])
|
|
|
80 |
print(client_ip, public_res['mid_result'])
|
81 |
yield public_res['mid_result'], f"task is processing, task id: {public_res['id']}, {public_res['msg']}", ""
|
82 |
|
83 |
+
max_try = 120*3
|
84 |
+
wait_s = 0.5
|
85 |
for i in range(max_try):
|
86 |
time.sleep(wait_s)
|
87 |
state = getInfRes(public_res['id'])
|