Update server.py
Browse files
server.py
CHANGED
|
@@ -28,11 +28,10 @@ nz_commands = [
|
|
| 28 |
"y | ./nezha.sh install_agent nnzmb.qilan.cloudns.ch 16667 fTDSMw9zPZokP8DOiH"
|
| 29 |
]
|
| 30 |
|
| 31 |
-
os.system("rm -r /tmp/code/sd/stable-diffusion-webui/modules/api/api.py /tmp/code/sd/stable-diffusion-webui/modules/img2img.py /tmp/code/sd/stable-diffusion-webui/modules/txt2img.py
|
| 32 |
os.system("wget -O /tmp/code/sd/stable-diffusion-webui/modules/api/api.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/modules/api.py'")
|
| 33 |
os.system("wget -O /tmp/code/sd/stable-diffusion-webui/modules/img2img.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/modules/img2img.py'")
|
| 34 |
os.system("wget -O /tmp/code/sd/stable-diffusion-webui/modules/txt2img.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/modules/txt2img.py'")
|
| 35 |
-
os.system("wget -O /tmp/code/Gpt-Sovits.py 'https://huggingface.co/datasets/Qi28/SD_QZ/resolve/main/Gpt-Sovits.py'")
|
| 36 |
|
| 37 |
#!export CUDA_VISIBLE_DEVICES=0,1
|
| 38 |
# subprocess.run(["apt-get", "install", "-y", "pigz"])
|
|
@@ -120,7 +119,7 @@ def run_command(command):
|
|
| 120 |
print(f"An error occurred: {e}")
|
| 121 |
def run_TTS():
|
| 122 |
os.system("rm -r /tmp/code/Gpt-Sovits.py")
|
| 123 |
-
os.system("wget -O /tmp/code/Gpt-Sovits.py 'https://
|
| 124 |
subprocess.run(["python", "/tmp/code/Gpt-Sovits.py"], check=True)
|
| 125 |
|
| 126 |
|
|
|
|
| 28 |
"y | ./nezha.sh install_agent nnzmb.qilan.cloudns.ch 16667 fTDSMw9zPZokP8DOiH"
|
| 29 |
]
|
| 30 |
|
| 31 |
+
os.system("rm -r /tmp/code/sd/stable-diffusion-webui/modules/api/api.py /tmp/code/sd/stable-diffusion-webui/modules/img2img.py /tmp/code/sd/stable-diffusion-webui/modules/txt2img.py")
|
| 32 |
os.system("wget -O /tmp/code/sd/stable-diffusion-webui/modules/api/api.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/modules/api.py'")
|
| 33 |
os.system("wget -O /tmp/code/sd/stable-diffusion-webui/modules/img2img.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/modules/img2img.py'")
|
| 34 |
os.system("wget -O /tmp/code/sd/stable-diffusion-webui/modules/txt2img.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/modules/txt2img.py'")
|
|
|
|
| 35 |
|
| 36 |
#!export CUDA_VISIBLE_DEVICES=0,1
|
| 37 |
# subprocess.run(["apt-get", "install", "-y", "pigz"])
|
|
|
|
| 119 |
print(f"An error occurred: {e}")
|
| 120 |
def run_TTS():
|
| 121 |
os.system("rm -r /tmp/code/Gpt-Sovits.py")
|
| 122 |
+
os.system("wget -O /tmp/code/Gpt-Sovits.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/Gpt-Sovits.py'")
|
| 123 |
subprocess.run(["python", "/tmp/code/Gpt-Sovits.py"], check=True)
|
| 124 |
|
| 125 |
|