Qi28 commited on
Commit
d06d4a3
·
verified ·
1 Parent(s): 716b74c

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +2 -2
server.py CHANGED
@@ -7,7 +7,7 @@ import threading
7
  import time
8
  import psutil
9
  import socket
10
-
11
 
12
  port_and_commands_json = json.dumps([
13
  {
@@ -127,7 +127,7 @@ os.chdir('/home/aistudio/work/GPT-SoVITS')
127
  run_api_script() # 检测环境
128
  execute_commands(port_and_commands_json)
129
 
130
- env = os.environ.copy()
131
  subprocess.run(['python', '/home/aistudio/activate_port.py', str(7860)], env=env, capture_output=True, text=True)
132
 
133
  os.makedirs(".webide", exist_ok=True)
 
7
  import time
8
  import psutil
9
  import socket
10
+ env = os.environ.copy()
11
 
12
  port_and_commands_json = json.dumps([
13
  {
 
127
  run_api_script() # 检测环境
128
  execute_commands(port_and_commands_json)
129
 
130
+
131
  subprocess.run(['python', '/home/aistudio/activate_port.py', str(7860)], env=env, capture_output=True, text=True)
132
 
133
  os.makedirs(".webide", exist_ok=True)