robertselvam commited on
Commit
385c0fd
·
verified ·
1 Parent(s): 2b08e0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ from streamlit.runtime.scriptrunner import get_script_run_ctx
22
 
23
  import subprocess
24
 
25
- def get_current_username():
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(get_current_username())
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):