Update app2.py
Browse files
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}
|
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}")
|