Update server11-bf.py
Browse files- server11-bf.py +30 -25
server11-bf.py
CHANGED
|
@@ -7,9 +7,35 @@
|
|
| 7 |
#source /opt/venv/bin/activate
|
| 8 |
#python a.py
|
| 9 |
|
| 10 |
-
huggingface_user="CourtneyCourtneyLNg"#
|
| 11 |
-
huggingface_id="vguyeeewq11"
|
| 12 |
-
huggingface_tokon="hf_BdUJ EGpSLdlpcekoHETcxNTxPDDtsCqkEW"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
ini_content = {"username":"rvbpm6lm","key":"3c17fa4e8261ab5fe7ddea63f2560516"}
|
| 15 |
frp_url = '119.8.118.149'
|
|
@@ -81,28 +107,7 @@ kaggle_metadata = {
|
|
| 81 |
}
|
| 82 |
st_status = True
|
| 83 |
|
| 84 |
-
|
| 85 |
-
import os
|
| 86 |
-
import sys
|
| 87 |
-
import configparser
|
| 88 |
-
# from IPython.display import clear_output
|
| 89 |
-
import urllib.request
|
| 90 |
-
from pathlib import Path
|
| 91 |
-
import requests
|
| 92 |
-
import json
|
| 93 |
-
import threading
|
| 94 |
-
import time
|
| 95 |
-
import pexpect
|
| 96 |
-
import socket
|
| 97 |
-
import time
|
| 98 |
-
import glob # 导入 glob 模块
|
| 99 |
-
from requests.adapters import HTTPAdapter
|
| 100 |
-
from requests.packages.urllib3.util.retry import Retry
|
| 101 |
-
import logging
|
| 102 |
-
from datetime import datetime
|
| 103 |
-
import psutil
|
| 104 |
-
from typing import List, Dict
|
| 105 |
-
import pytz
|
| 106 |
|
| 107 |
# 创建 FRP 文件夹并下载 frpc 可执行文件。
|
| 108 |
os.system("wget -q https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip_huggingface.py -O /data/ip_huggingface.py")
|
|
|
|
| 7 |
#source /opt/venv/bin/activate
|
| 8 |
#python a.py
|
| 9 |
|
| 10 |
+
# huggingface_user="CourtneyCourtneyLNg"#
|
| 11 |
+
# huggingface_id="vguyeeewq11"
|
| 12 |
+
# huggingface_tokon="hf_BdUJ EGpSLdlpcekoHETcxNTxPDDtsCqkEW"
|
| 13 |
+
import subprocess
|
| 14 |
+
import os
|
| 15 |
+
import sys
|
| 16 |
+
import configparser
|
| 17 |
+
# from IPython.display import clear_output
|
| 18 |
+
import urllib.request
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
import requests
|
| 21 |
+
import json
|
| 22 |
+
import threading
|
| 23 |
+
import time
|
| 24 |
+
import pexpect
|
| 25 |
+
import socket
|
| 26 |
+
import time
|
| 27 |
+
import glob # 导入 glob 模块
|
| 28 |
+
from requests.adapters import HTTPAdapter
|
| 29 |
+
from requests.packages.urllib3.util.retry import Retry
|
| 30 |
+
import logging
|
| 31 |
+
from datetime import datetime
|
| 32 |
+
import psutil
|
| 33 |
+
from typing import List, Dict
|
| 34 |
+
import pytz
|
| 35 |
+
|
| 36 |
+
huggingface_user = os.environ.get('HF_USER2', '')#用户名
|
| 37 |
+
huggingface_id = os.environ.get('HF_ID', '')#项目名
|
| 38 |
+
huggingface_tokon = os.environ.get('HF_TOKEN2', '')
|
| 39 |
|
| 40 |
ini_content = {"username":"rvbpm6lm","key":"3c17fa4e8261ab5fe7ddea63f2560516"}
|
| 41 |
frp_url = '119.8.118.149'
|
|
|
|
| 107 |
}
|
| 108 |
st_status = True
|
| 109 |
|
| 110 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
# 创建 FRP 文件夹并下载 frpc 可执行文件。
|
| 113 |
os.system("wget -q https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip_huggingface.py -O /data/ip_huggingface.py")
|