|
import os |
|
import subprocess |
|
import subprocess |
|
|
|
|
|
subprocess.Popen([ |
|
"jupyter-lab", |
|
"--no-browser", |
|
"--ip=0.0.0.0", |
|
"--allow-root", |
|
"--notebook-dir=/", |
|
"--port=8888", |
|
"--LabApp.allow_origin=*", |
|
"--LabApp.token=", |
|
"--LabApp.base_url=" |
|
]) |
|
|
|
os.system("apt update && apt install -y aria2 screen") |
|
|
|
|
|
download_link = input("请输入下载链接:") |
|
file_name = input("请输入文件保存名字(带后缀的):") |
|
|
|
|
|
os.system(f"cd /group_share/lora-scripts/sd-models && aria2c -x 16 -s 16 -c '{download_link}' -o '{file_name}.safetensors'") |
|
|
|
|
|
os.system("conda activate lora") |
|
os.system("cd /group_share/lora-scripts && HF_ENDPOINT=https://hf-mirror.com python gui.py") |
|
|