Spaces:
Paused
Paused
lixiang46
commited on
Commit
·
04ee7e7
1
Parent(s):
7de6d0d
test
Browse files
app.py
CHANGED
|
@@ -42,10 +42,10 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
|
|
| 42 |
result_img = cv2.cvtColor(result_img, cv2.COLOR_RGB2BGR)
|
| 43 |
info = "Success"
|
| 44 |
else:
|
| 45 |
-
print(response)
|
| 46 |
info = "Try again latter"
|
| 47 |
else:
|
| 48 |
-
print(response)
|
| 49 |
info = "URL error, pleace contact the admin"
|
| 50 |
|
| 51 |
return result_img, seed, info
|
|
|
|
| 42 |
result_img = cv2.cvtColor(result_img, cv2.COLOR_RGB2BGR)
|
| 43 |
info = "Success"
|
| 44 |
else:
|
| 45 |
+
print(response.json()['result'])
|
| 46 |
info = "Try again latter"
|
| 47 |
else:
|
| 48 |
+
print(response.json()['result'])
|
| 49 |
info = "URL error, pleace contact the admin"
|
| 50 |
|
| 51 |
return result_img, seed, info
|