ACCA225 commited on
Commit
0dbc774
1 Parent(s): 781f10c

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +6 -3
app2.py CHANGED
@@ -234,10 +234,13 @@ def monitor_gpu():
234
 
235
  time.sleep(60)
236
  def zrok():
237
- #不可用
 
 
 
238
  pass
239
  def start():
240
- os.system("pip install pyngrok")
241
  #try:
242
  # print('启动proxy')
243
  # threading.Thread(target = localProxy,daemon=True).start()
@@ -257,7 +260,7 @@ def start():
257
  process = subprocess.Popen(command1, shell=True)
258
  time.sleep(100)
259
  print("启动ngrok中")
260
- os.system(f"{command2} & ngrok http 7862 --authtoken=2bgXLjjKFvxfbuZFlR2NMZkvL8n_4WrK7f15FLtWb8p7v3oaF & ngrok http 7863 --authtoken=2CXyNlT9xGfFoL5ruI6hQV20FNq_7tbmuzS9RtyNTkyEe1J6C")
261
  except Exception as e:
262
  # 在这里处理异常的代码
263
  print(f"启动SD发生错误: {e}")
 
234
 
235
  time.sleep(60)
236
  def zrok():
237
+
238
+ os.system("wget https://hf-mirror.com/datasets/ACCA225/frp-1/resolve/main/frpc")
239
+ os.system("chmod +x ./frpc")
240
+ os.system("./frpc -f bsnehoeds17ett71i2cr79ujoa7ndkxz:13738352 & ./frpc -f bsnehoeds17ett71i2cr79ujoa7ndkxz:13738353")
241
  pass
242
  def start():
243
+ #os.system("pip install pyngrok")
244
  #try:
245
  # print('启动proxy')
246
  # threading.Thread(target = localProxy,daemon=True).start()
 
260
  process = subprocess.Popen(command1, shell=True)
261
  time.sleep(100)
262
  print("启动ngrok中")
263
+ os.system(f"{command2}")
264
  except Exception as e:
265
  # 在这里处理异常的代码
266
  print(f"启动SD发生错误: {e}")