lixiang46
commited on
Commit
·
4dd113c
1
Parent(s):
002bcad
test
Browse files
app.py
CHANGED
|
@@ -39,6 +39,7 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
|
|
| 39 |
print("response code", response.status_code)
|
| 40 |
if response.status_code == 200:
|
| 41 |
result = response.json()['result']
|
|
|
|
| 42 |
status = result['status']
|
| 43 |
if status == "success":
|
| 44 |
result = base64.b64decode(result['result'])
|
|
@@ -75,15 +76,15 @@ human_list_path = [os.path.join(example_path,"human",human) for human in human_l
|
|
| 75 |
css="""
|
| 76 |
#col-left {
|
| 77 |
margin: 0 auto;
|
| 78 |
-
max-width:
|
| 79 |
}
|
| 80 |
#col-mid {
|
| 81 |
margin: 0 auto;
|
| 82 |
-
max-width:
|
| 83 |
}
|
| 84 |
#col-right {
|
| 85 |
margin: 0 auto;
|
| 86 |
-
max-width:
|
| 87 |
}
|
| 88 |
#col-showcase {
|
| 89 |
margin: 0 auto;
|
|
|
|
| 39 |
print("response code", response.status_code)
|
| 40 |
if response.status_code == 200:
|
| 41 |
result = response.json()['result']
|
| 42 |
+
print(result)
|
| 43 |
status = result['status']
|
| 44 |
if status == "success":
|
| 45 |
result = base64.b64decode(result['result'])
|
|
|
|
| 76 |
css="""
|
| 77 |
#col-left {
|
| 78 |
margin: 0 auto;
|
| 79 |
+
max-width: 430px;
|
| 80 |
}
|
| 81 |
#col-mid {
|
| 82 |
margin: 0 auto;
|
| 83 |
+
max-width: 430px;
|
| 84 |
}
|
| 85 |
#col-right {
|
| 86 |
margin: 0 auto;
|
| 87 |
+
max-width: 430px;
|
| 88 |
}
|
| 89 |
#col-showcase {
|
| 90 |
margin: 0 auto;
|