Spaces:
Running
Running
Commit
·
5d6c257
1
Parent(s):
d4479a2
init
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def generate_trump_voice_with_realtime_updates(text, language_display, request:
|
|
| 107 |
IP_Dict[client_ip] = 0
|
| 108 |
IP_Dict[client_ip] += 1
|
| 109 |
print(f"client_ip: {client_ip}, count: {IP_Dict[client_ip]}")
|
| 110 |
-
if IP_Dict[client_ip] >=
|
| 111 |
msg = "You have reached the maximum number of requests"
|
| 112 |
# Create "Get More Tries" button HTML
|
| 113 |
get_more_tries_html = f"""
|
|
|
|
| 107 |
IP_Dict[client_ip] = 0
|
| 108 |
IP_Dict[client_ip] += 1
|
| 109 |
print(f"client_ip: {client_ip}, count: {IP_Dict[client_ip]}")
|
| 110 |
+
if IP_Dict[client_ip] >= 4:
|
| 111 |
msg = "You have reached the maximum number of requests"
|
| 112 |
# Create "Get More Tries" button HTML
|
| 113 |
get_more_tries_html = f"""
|