Spaces:
Running
Running
selfitcamera
commited on
Commit
·
886f7f8
1
Parent(s):
ac61922
init
Browse files
app.py
CHANGED
@@ -39,9 +39,12 @@ def onClick(cloth_image, pose_image, size):
|
|
39 |
|
40 |
try:
|
41 |
client_ip = '8.8.8.8'
|
42 |
-
|
|
|
43 |
timeId = int( str(time.time()).replace(".", "") )+random.randint(1000, 9999)
|
44 |
isUpload = upload_pose_img(ApiUrl, OpenId, ApiKey, client_ip, timeId, pose_image)
|
|
|
|
|
45 |
if isUpload==0:
|
46 |
yield None, "fail to upload", ""
|
47 |
return None, "fail to upload", ""
|
|
|
39 |
|
40 |
try:
|
41 |
client_ip = '8.8.8.8'
|
42 |
+
yield None, "begin to upload ", ""
|
43 |
+
|
44 |
timeId = int( str(time.time()).replace(".", "") )+random.randint(1000, 9999)
|
45 |
isUpload = upload_pose_img(ApiUrl, OpenId, ApiKey, client_ip, timeId, pose_image)
|
46 |
+
yield None, "begin to public task ", ""
|
47 |
+
|
48 |
if isUpload==0:
|
49 |
yield None, "fail to upload", ""
|
50 |
return None, "fail to upload", ""
|