Update Streamlit address to 192.168.50.101 for external access
This commit is contained in:
1 parent
cd0ce4d9b0
commit
bf8914856e
1 file changed
+1
-1
+1
-1
@@ -18,7 +18,7 @@ def get_screen_width():
|
||||
|
||||
def start_streamlit(port):
|
||||
global proc
|
||||
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "localhost", "--server.headless", "true"]
|
||||
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "192.168.50.101", "--server.headless", "true"]
|
||||
proc = subprocess.Popen(cmd)
|
||||
atexit.register(proc.kill)
|
||||
|
||||
|
||||
Reference in new issue
Block a user