Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ ip_requests = {}
|
|
83 |
ip_requests_lock = threading.Lock()
|
84 |
|
85 |
def allow_ip(request: gr.Request, show_error=True):
|
86 |
-
ip = request.headers.get("X-Forwarded-For"
|
87 |
now = datetime.now()
|
88 |
window = timedelta(hours=24)
|
89 |
|
|
|
83 |
ip_requests_lock = threading.Lock()
|
84 |
|
85 |
def allow_ip(request: gr.Request, show_error=True):
|
86 |
+
ip = request.headers.get("X-Forwarded-For")
|
87 |
now = datetime.now()
|
88 |
window = timedelta(hours=24)
|
89 |
|