ACCA225 commited on
Commit
651e1c3
1 Parent(s): 6ebfc81

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +2 -2
app2.py CHANGED
@@ -25,9 +25,9 @@ def notbook():
25
  os.system("pip install jupyterlab")
26
  os.system("pip install pyngrok")
27
  # 构建命令字符串
28
- ngrok_command = f"ngrok http 8889 --authtoken=2cdw5pJsqgsq1igQKeHIpNwTNG7_7LQD3jojKKQ7PzcnNkok5"
29
  ngrok_command2 = f"ngrok tunnel --label edge=edghts_2doueG9BDi9rCXUGnsSsNbTab8H --authtoken=2douOsr61tUyYwMVF3lfj9uZGoa_6FPJ2x1xhKPbL6z4euKkM --region=ap http://localhost:8889"
30
- jupyter_command = "jupyter-lab --no-browser --ip=0.0.0.0 --allow-root --notebook-dir=/ --port=8889 --LabApp.token= --LabApp.allow_origin=* --LabApp.base_url="
31
 
32
  # 启动 ngrok 进程
33
  ngrok_process = subprocess.Popen(ngrok_command, shell=True)
 
25
  os.system("pip install jupyterlab")
26
  os.system("pip install pyngrok")
27
  # 构建命令字符串
28
+ ngrok_command = f"ngrok http --authtoken=2cdw5pJsqgsq1igQKeHIpNwTNG7_7LQD3jojKKQ7PzcnNkok5"
29
  ngrok_command2 = f"ngrok tunnel --label edge=edghts_2doueG9BDi9rCXUGnsSsNbTab8H --authtoken=2douOsr61tUyYwMVF3lfj9uZGoa_6FPJ2x1xhKPbL6z4euKkM --region=ap http://localhost:8889"
30
+ jupyter_command = "jupyter-lab --no-browser --ip=0.0.0.0 --allow-root --notebook-dir=/ --port=8889 --LabApp.token= --LabApp.base_url=/8889/"
31
 
32
  # 启动 ngrok 进程
33
  ngrok_process = subprocess.Popen(ngrok_command, shell=True)