Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|