Qi28 commited on
Commit
722db52
·
verified ·
1 Parent(s): c5bab87

Update Gpt-Sovits.py

Browse files
Files changed (1) hide show
  1. Gpt-Sovits.py +2 -2
Gpt-Sovits.py CHANGED
@@ -27,10 +27,10 @@ import subprocess
27
  def install_node():
28
  try:
29
  # 更新包列表
30
- subprocess.run(["sudo", "apt", "update"], check=True)
31
 
32
  # 安装 Node.js 和 npm
33
- subprocess.run(["sudo", "apt", "install", "-y", "nodejs", "npm"], check=True)
34
 
35
  print("Node.js and npm installed successfully.")
36
 
 
27
  def install_node():
28
  try:
29
  # 更新包列表
30
+ subprocess.run(["apt", "update"], check=True)
31
 
32
  # 安装 Node.js 和 npm
33
+ subprocess.run(["apt", "install", "-y", "nodejs", "npm"], check=True)
34
 
35
  print("Node.js and npm installed successfully.")
36