ACCA225 commited on
Commit
5c4a3b6
1 Parent(s): 6ae9887

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +2 -7
app2.py CHANGED
@@ -234,12 +234,7 @@ def monitor_gpu():
234
 
235
  time.sleep(60)
236
  def zrok():
237
- #内网穿透
238
- os.system(f'wget https://hf-mirror.com/datasets/ACCA225/zrok/resolve/main/zrok')
239
- os.system(f'chmod +x ./zrok')
240
- os.system(f'./zrok enable sbdZuzXMfujU')
241
- os.system(f'./zrok share public localhost:7862')
242
- os.system(f'./zrok share public localhost:7863')
243
  def start():
244
  #try:
245
  # print('启动proxy')
@@ -257,7 +252,7 @@ def start():
257
 
258
  process = subprocess.Popen(command, shell=True)
259
  time.sleep(250)
260
- os.system(f"{command} --port=7862 & {command} --port=7863")
261
  except Exception as e:
262
  # 在这里处理异常的代码
263
  print(f"启动SD发生错误: {e}")
 
234
 
235
  time.sleep(60)
236
  def zrok():
237
+ pass
 
 
 
 
 
238
  def start():
239
  #try:
240
  # print('启动proxy')
 
252
 
253
  process = subprocess.Popen(command, shell=True)
254
  time.sleep(250)
255
+ os.system(f"{command} --port=7862 --ngrok=2bayh7KMd8cHxxCMdZPL0r8pS0A_7YiiKbumG48pzN7ixrLUN")
256
  except Exception as e:
257
  # 在这里处理异常的代码
258
  print(f"启动SD发生错误: {e}")