harshSethi commited on
Commit
063aa05
·
verified ·
1 Parent(s): 59dc0ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ ipAddress = None
22
  def nowInISt():
23
  return dt.datetime.now(pytz.timezone("Asia/Kolkata"))
24
 
25
- def attachIp():
26
  global ipAddress
27
  x_forwarded_for = request.headers.get("x-forwarded-for")
28
  if x_forwarded_for:
 
22
  def nowInISt():
23
  return dt.datetime.now(pytz.timezone("Asia/Kolkata"))
24
 
25
+ def attachIp(request = gr.Request):
26
  global ipAddress
27
  x_forwarded_for = request.headers.get("x-forwarded-for")
28
  if x_forwarded_for: