Spaces:
Sleeping
Sleeping
Ashhar
commited on
Commit
·
de9be82
1
Parent(s):
a250af3
remove ip check
Browse files
app.py
CHANGED
@@ -48,11 +48,11 @@ def __nowInIST():
|
|
48 |
return DT.datetime.now(pytz.timezone("Asia/Kolkata"))
|
49 |
|
50 |
|
51 |
-
def __attachIp(request: gr.Request):
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
|
57 |
|
58 |
def pprint(log: str):
|
@@ -124,9 +124,9 @@ with gr.Interface(
|
|
124 |
allow_flagging="never", # Disable flagging
|
125 |
css=css
|
126 |
) as demo:
|
127 |
-
demo.load(__attachIp, None, None)
|
128 |
copyButton = gr.Button(
|
129 |
-
"
|
130 |
elem_id="copy-button",
|
131 |
variant="primary"
|
132 |
).click(
|
|
|
48 |
return DT.datetime.now(pytz.timezone("Asia/Kolkata"))
|
49 |
|
50 |
|
51 |
+
# def __attachIp(request: gr.Request):
|
52 |
+
# global ipAddress
|
53 |
+
# x_forwarded_for = request.headers.get('x-forwarded-for')
|
54 |
+
# if x_forwarded_for:
|
55 |
+
# ipAddress = x_forwarded_for
|
56 |
|
57 |
|
58 |
def pprint(log: str):
|
|
|
124 |
allow_flagging="never", # Disable flagging
|
125 |
css=css
|
126 |
) as demo:
|
127 |
+
# demo.load(__attachIp, None, None)
|
128 |
copyButton = gr.Button(
|
129 |
+
"Use Output",
|
130 |
elem_id="copy-button",
|
131 |
variant="primary"
|
132 |
).click(
|