abidlabs HF staff commited on
Commit
c04afa4
1 Parent(s): 9324678

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", request.client.host)
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