Spaces:
Running
Running
selfitcamera
commited on
Commit
·
f16cafc
1
Parent(s):
f61273f
init
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ def onClick(cloth_image, pose_image, high_resolution):
|
|
69 |
yield state['output1'] + f"?t={timestamp}", f"task finished, {state['msg']}", ""
|
70 |
return state['output1'] + f"?t={timestamp}", f"task finished, {state['msg']}", ""
|
71 |
elif state['status']=='FAILED':
|
72 |
-
yield
|
73 |
-
return
|
74 |
else:
|
75 |
yield public_res['mid_result'] + f"?t={timestamp}", f"task is on processing, query {i}", ""
|
76 |
return None, "no machine...", ""
|
|
|
69 |
yield state['output1'] + f"?t={timestamp}", f"task finished, {state['msg']}", ""
|
70 |
return state['output1'] + f"?t={timestamp}", f"task finished, {state['msg']}", ""
|
71 |
elif state['status']=='FAILED':
|
72 |
+
yield None, f"task failed, {state['msg']}", ""
|
73 |
+
return None, f"task failed, {state['msg']}", ""
|
74 |
else:
|
75 |
yield public_res['mid_result'] + f"?t={timestamp}", f"task is on processing, query {i}", ""
|
76 |
return None, "no machine...", ""
|