Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
lixiang46
commited on
Commit
•
eb6761c
1
Parent(s):
bab38b1
add timeout
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
|
|
32 |
}
|
33 |
|
34 |
print("post")
|
35 |
-
response = requests.post(url, headers=headers, data=json.dumps(data))
|
36 |
print("response code", response.status_code)
|
37 |
result_img = None
|
38 |
if response.status_code == 200:
|
|
|
32 |
}
|
33 |
|
34 |
print("post")
|
35 |
+
response = requests.post(url, headers=headers, data=json.dumps(data), timeout=120)
|
36 |
print("response code", response.status_code)
|
37 |
result_img = None
|
38 |
if response.status_code == 200:
|