robertselvam
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ from streamlit.runtime.scriptrunner import get_script_run_ctx
|
|
22 |
|
23 |
import subprocess
|
24 |
|
25 |
-
def
|
26 |
try:
|
27 |
result = subprocess.run(['whoami'], capture_output=True, text=True)
|
28 |
username = result.stdout.strip()
|
@@ -31,7 +31,7 @@ def get_current_username():
|
|
31 |
return str(e)
|
32 |
|
33 |
# Example usage
|
34 |
-
st.write(
|
35 |
|
36 |
|
37 |
class ContextFilter(logging.Filter):
|
|
|
22 |
|
23 |
import subprocess
|
24 |
|
25 |
+
def get_remote_ip():
|
26 |
try:
|
27 |
result = subprocess.run(['whoami'], capture_output=True, text=True)
|
28 |
username = result.stdout.strip()
|
|
|
31 |
return str(e)
|
32 |
|
33 |
# Example usage
|
34 |
+
st.write(get_remote_ip())
|
35 |
|
36 |
|
37 |
class ContextFilter(logging.Filter):
|