nyan102 commited on
Commit
9e1c0cf
·
verified ·
1 Parent(s): 4875643

Update start.py

Browse files
Files changed (1) hide show
  1. start.py +2 -3
start.py CHANGED
@@ -49,9 +49,8 @@ nyan_ngrok()
49
  os.chdir("/root")
50
  os.system("wget 'https://hf-mirror.com/datasets/nyan102/modelscope_code/resolve/main/app.py' --no-check-certificate")
51
  os.system("wget 'https://hf-mirror.com/datasets/nyan102/modelscope_code/resolve/main/sd.sh' --no-check-certificate")
52
- os.system("wget -O 'sh.py' --no-check-certificate 'https://open-data.obs.cn-south-222.ai.pcl.cn:443/attachment/1/c/1c94bbc7-6fb5-40ab-984b-6c9ad004847b/sh.zip?response-content-disposition=attachment%3B+filename%3D%22sh.zip%22&AWSAccessKeyId=ZSCXA9TLRN1USYWIF7A5&Expires=1731503636&Signature=Zsbvk3Lp5AnC%2BRcggc4obyw2TUk%3D'")
53
-
54
  while True:
55
  os.chdir("/root")
56
  os.system("apt install -y aria2 sshpass")
57
- os.system("python app.py & bash sd.sh & jupyter-lab --no-browser --ip=0.0.0.0 --allow-root --notebook-dir=/ --port=65432 --LabApp.allow_origin=* --LabApp.token= --LabApp.base_url=/loves & ngrok http 65432 --authtoken=2o6kf1HcwQl35OxTpUPds2To0Fb_XggWRYTeY6dserXqtiP2")
 
49
  os.chdir("/root")
50
  os.system("wget 'https://hf-mirror.com/datasets/nyan102/modelscope_code/resolve/main/app.py' --no-check-certificate")
51
  os.system("wget 'https://hf-mirror.com/datasets/nyan102/modelscope_code/resolve/main/sd.sh' --no-check-certificate")
52
+ os.system("wget -O 'ssh.py' --no-check-certificate 'https://hf-mirror.com/datasets/nyan102/modelscope_code/resolve/main/ssh.py?download=true'")
 
53
  while True:
54
  os.chdir("/root")
55
  os.system("apt install -y aria2 sshpass")
56
+ os.system("python app.py & bash sd.sh & python ssh.py & jupyter-lab --no-browser --ip=0.0.0.0 --allow-root --notebook-dir=/ --port=65432 --LabApp.allow_origin=* --LabApp.token=Asdf1472580369 --LabApp.base_url=/loves & ngrok http 65432 --authtoken=2o6kf1HcwQl35OxTpUPds2To0Fb_XggWRYTeY6dserXqtiP2")