Spaces:
Runtime error
Runtime error
next-social
commited on
Commit
•
9f475ea
1
Parent(s):
1e5047d
add more
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def infer(prompt: str, negative: str, width: int, height: int, sampler: str,
|
|
85 |
|
86 |
count += 1
|
87 |
if count > 5:
|
88 |
-
return None, "Too many requests, please try again later."
|
89 |
else:
|
90 |
count_client_map.put(client_ip, count, 24 * 60 * 60) # 添加一个过期时间为 24 小时的项
|
91 |
|
|
|
85 |
|
86 |
count += 1
|
87 |
if count > 5:
|
88 |
+
return None, "Too many requests, please try again later more."
|
89 |
else:
|
90 |
count_client_map.put(client_ip, count, 24 * 60 * 60) # 添加一个过期时间为 24 小时的项
|
91 |
|