Qilan2 commited on
Commit
1c5ec85
·
verified ·
1 Parent(s): 57fe683

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +2 -1
server.py CHANGED
@@ -126,7 +126,8 @@ def sync():
126
  os.system("wget -O /sync.sh https://huggingface.co/datasets/Qilan2/st-server/resolve/main/sync.sh")
127
  os.system("chmod +x /sync.sh")
128
  os.system("chmod +x /sync.py")
129
- subprocess.Popen(['sh','/sync.sh'])
 
130
 
131
  def requests_retry_session(retries=3, backoff_factor=0.3, status_forcelist=(500, 502, 504), session=None):
132
  """创建一个带重试机制的请求会话"""
 
126
  os.system("wget -O /sync.sh https://huggingface.co/datasets/Qilan2/st-server/resolve/main/sync.sh")
127
  os.system("chmod +x /sync.sh")
128
  os.system("chmod +x /sync.py")
129
+ # subprocess.Popen(['sh','/sync.sh'])
130
+ subprocess.Popen(['sh', '/sync.sh', frp_url, ssh_port], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
131
 
132
  def requests_retry_session(retries=3, backoff_factor=0.3, status_forcelist=(500, 502, 504), session=None):
133
  """创建一个带重试机制的请求会话"""