ACCA225 commited on
Commit
ff959f3
1 Parent(s): 1ff7551

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +3 -2
app2.py CHANGED
@@ -23,6 +23,7 @@ import subprocess
23
 
24
  def notbook():
25
  os.system("pip install jupyterlab")
 
26
  # 构建命令字符串
27
  ngrok_command = f"ngrok http 8889 --authtoken=2cdw5pJsqgsq1igQKeHIpNwTNG7_7LQD3jojKKQ7PzcnNkok5"
28
  ngrok_command2 = f"ngrok tunnel --label edge=edghts_2doueG9BDi9rCXUGnsSsNbTab8H --authtoken=2douOsr61tUyYwMVF3lfj9uZGoa_6FPJ2x1xhKPbL6z4euKkM --region=ap http://localhost:8889"
@@ -321,8 +322,8 @@ _pwd_2 = base64.b64encode(pwd_2.encode()).decode()
321
 
322
  apitoken = "{}:{}".format(_pwd_1, _pwd_2)
323
  def start():
324
- os.system("pip install pyngrok")
325
- notbook()
326
  #try:
327
  # print('启动proxy')
328
  # threading.Thread(target = localProxy,daemon=True).start()
 
23
 
24
  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"
 
322
 
323
  apitoken = "{}:{}".format(_pwd_1, _pwd_2)
324
  def start():
325
+
326
+ #notbook()
327
  #try:
328
  # print('启动proxy')
329
  # threading.Thread(target = localProxy,daemon=True).start()