Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
lixiang46
commited on
Commit
•
64d0526
1
Parent(s):
bb6ffba
add gr.error
Browse files
app.py
CHANGED
@@ -55,6 +55,7 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
|
|
55 |
except requests.exceptions.ReadTimeout:
|
56 |
print("timeout")
|
57 |
info = "Too many users, please try again later"
|
|
|
58 |
except Exception as err:
|
59 |
print(f"其他错误: {err}")
|
60 |
info = "Error, pleace contact the admin"
|
|
|
55 |
except requests.exceptions.ReadTimeout:
|
56 |
print("timeout")
|
57 |
info = "Too many users, please try again later"
|
58 |
+
raise gr.Error("Too many users, please try again later")
|
59 |
except Exception as err:
|
60 |
print(f"其他错误: {err}")
|
61 |
info = "Error, pleace contact the admin"
|