Update Gpt-Sovits.py
Browse files- Gpt-Sovits.py +14 -0
Gpt-Sovits.py
CHANGED
|
@@ -124,6 +124,20 @@ def install_dependencies():
|
|
| 124 |
def NPS():
|
| 125 |
print("启动NPS")
|
| 126 |
os.system(f"/tmp/code/nps-Copy1/npc -server={NPS_server} -vkey={NPS_key} -type=tcp")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
subprocess.run(['npm', 'install', '-g','localtunnel'], check=True)
|
| 128 |
os.chdir(folder_path)
|
| 129 |
|
|
|
|
| 124 |
def NPS():
|
| 125 |
print("启动NPS")
|
| 126 |
os.system(f"/tmp/code/nps-Copy1/npc -server={NPS_server} -vkey={NPS_key} -type=tcp")
|
| 127 |
+
def run_ngrok():
|
| 128 |
+
commands = [
|
| 129 |
+
"curl -sSL https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null",
|
| 130 |
+
"echo 'deb https://ngrok-agent.s3.amazonaws.com buster main' | tee /etc/apt/sources.list.d/ngrok.list",
|
| 131 |
+
"apt update",
|
| 132 |
+
"apt install -y ngrok"
|
| 133 |
+
]
|
| 134 |
+
subprocess.run(command, shell=True, check=True)
|
| 135 |
+
os.system('ngrok config add-authtoken 2sWuZRgGWJHAgUC8dYumdkMe9Ma_3scefrNvGn1Qitmwb3g2n')
|
| 136 |
+
while True:
|
| 137 |
+
os.system('ngrok http --url=polecat-neutral-certainly.ngrok-free.app 9880')
|
| 138 |
+
time.sleep(10)
|
| 139 |
+
|
| 140 |
+
|
| 141 |
subprocess.run(['npm', 'install', '-g','localtunnel'], check=True)
|
| 142 |
os.chdir(folder_path)
|
| 143 |
|