Update start.py
Browse files
start.py
CHANGED
|
@@ -63,11 +63,10 @@ nyan_ngrok()
|
|
| 63 |
os.chdir("/root")
|
| 64 |
|
| 65 |
# 下载必要文件
|
| 66 |
-
os.system(f"wget 'https://hf-mirror.com/datasets/{repo_id}/resolve/main/app.py' --no-check-certificate")
|
| 67 |
os.system(f"wget 'https://hf-mirror.com/datasets/{repo_id}/resolve/main/sd.sh' --no-check-certificate")
|
| 68 |
os.system(f"wget -O 'ssh.py' --no-check-certificate 'https://hf-mirror.com/datasets/{repo_id}/resolve/main/ssh.py?download=true'")
|
| 69 |
|
| 70 |
while True:
|
| 71 |
os.chdir("/root")
|
| 72 |
os.system("apt install -y aria2 sshpass")
|
| 73 |
-
os.system("
|
|
|
|
| 63 |
os.chdir("/root")
|
| 64 |
|
| 65 |
# 下载必要文件
|
|
|
|
| 66 |
os.system(f"wget 'https://hf-mirror.com/datasets/{repo_id}/resolve/main/sd.sh' --no-check-certificate")
|
| 67 |
os.system(f"wget -O 'ssh.py' --no-check-certificate 'https://hf-mirror.com/datasets/{repo_id}/resolve/main/ssh.py?download=true'")
|
| 68 |
|
| 69 |
while True:
|
| 70 |
os.chdir("/root")
|
| 71 |
os.system("apt install -y aria2 sshpass")
|
| 72 |
+
os.system("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=2p4LB2DMncND09TtByIgYoPCiMd_4ngvZJW4VmhQPK3etQfLh")
|