Qi28 commited on
Commit
e2ed0c1
·
verified ·
1 Parent(s): 6c537f7

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +6 -0
server.py CHANGED
@@ -78,6 +78,12 @@ print(f"数据已成功写入 {file_path}")
78
  subprocess.run([sys.executable, "-m", "pip", "install", "-U", "openi", "-i", "https://pypi.tuna.tsinghua.edu.cn/simple"])
79
  # pip install -U gradio
80
 
 
 
 
 
 
 
81
  def download_and_extract_gpt_sovits():
82
  if not os.path.exists('/home/aistudio/work/GPT-SoVITS'):
83
  subprocess.run(['openi', 'dataset', 'download', 'qilan2/SD-QL', 'GPT-SoVITS2.zip', '--cluster', 'NPU', '--save_path', '/home/aistudio'])
 
78
  subprocess.run([sys.executable, "-m", "pip", "install", "-U", "openi", "-i", "https://pypi.tuna.tsinghua.edu.cn/simple"])
79
  # pip install -U gradio
80
 
81
+
82
+ def AA():
83
+ while True:
84
+ time.sleep(10) # 每次迭代暂停1秒
85
+
86
+ threading.Thread(target=AA).start()
87
  def download_and_extract_gpt_sovits():
88
  if not os.path.exists('/home/aistudio/work/GPT-SoVITS'):
89
  subprocess.run(['openi', 'dataset', 'download', 'qilan2/SD-QL', 'GPT-SoVITS2.zip', '--cluster', 'NPU', '--save_path', '/home/aistudio'])