Qilan2 commited on
Commit
967a06c
·
verified ·
1 Parent(s): 7a3d3c7

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +4 -2
server.py CHANGED
@@ -74,6 +74,7 @@ def update():
74
  os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
75
  os.system("pip install pexpect")
76
  os.system('apt-get install pigz')
 
77
  print('-----------更新软件包列表结束-------------')
78
  update()
79
  from ruamel.yaml import YAML
@@ -523,10 +524,11 @@ def SillyTavern():
523
  # os.system("mv /sillytavern.zip1 /sillytavern.zip")
524
  # os.system("7z x /sillytavern.zip -o/sillytavern -y")
525
  os.system("mv sillytavern.tar.gz1 sillytavern.tar.gz")
526
- os.system("tar -xvpf /sillytavern.tar.gz -C / --use-compress-program=pigz")
 
527
 
528
 
529
- threading.Thread(target=Oneapi, daemon=True).start()
530
  os.chdir('/sillytavern')
531
  os.system("ls")
532
  os.system("nvm install node")
 
74
  os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
75
  os.system("pip install pexpect")
76
  os.system('apt-get install pigz')
77
+ os.system('apt-get install pv')
78
  print('-----------更新软件包列表结束-------------')
79
  update()
80
  from ruamel.yaml import YAML
 
524
  # os.system("mv /sillytavern.zip1 /sillytavern.zip")
525
  # os.system("7z x /sillytavern.zip -o/sillytavern -y")
526
  os.system("mv sillytavern.tar.gz1 sillytavern.tar.gz")
527
+ # os.system("tar -xvpf /sillytavern.tar.gz -C / --use-compress-program=pigz")
528
+ os.system("pv /sillytavern.tar.gz | tar -xvpf - -C / --use-compress-program=pigz")
529
 
530
 
531
+ # threading.Thread(target=Oneapi, daemon=True).start()
532
  os.chdir('/sillytavern')
533
  os.system("ls")
534
  os.system("nvm install node")