Update server12-bf.py
Browse files- server12-bf.py +25 -25
server12-bf.py
CHANGED
|
@@ -10,14 +10,35 @@
|
|
| 10 |
# huggingface_user="gfuyyydg"#用户名
|
| 11 |
# huggingface_id="vcfdfr"# 项目名
|
| 12 |
# huggingface_tokon="hf_ATnJ fNDvQfatBcfnliYIndukbkWGAuxXzD"
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
huggingface_name = 'rvbpm6lm'#运行的仓库
|
| 15 |
huggingface_Data_name = 'qilan-st12'#备份仓储库
|
| 16 |
|
| 17 |
|
| 18 |
-
huggingface_user = os.environ.get('
|
| 19 |
huggingface_id = os.environ.get('HF_ID', '')#项目名
|
| 20 |
-
huggingface_tokon = os.environ.get('
|
| 21 |
|
| 22 |
ini_content = {"username":"rvbpm6lm","key":"3c17fa4e8261ab5fe7ddea63f2560516"}
|
| 23 |
data_folder = '/data/SillyTavern' # 要压缩的目录
|
|
@@ -83,28 +104,7 @@ kaggle_metadata = {
|
|
| 83 |
}
|
| 84 |
st_status = True
|
| 85 |
|
| 86 |
-
|
| 87 |
-
import os
|
| 88 |
-
import sys
|
| 89 |
-
import configparser
|
| 90 |
-
# from IPython.display import clear_output
|
| 91 |
-
import urllib.request
|
| 92 |
-
from pathlib import Path
|
| 93 |
-
import requests
|
| 94 |
-
import json
|
| 95 |
-
import threading
|
| 96 |
-
import time
|
| 97 |
-
import pexpect
|
| 98 |
-
import socket
|
| 99 |
-
import time
|
| 100 |
-
import glob # 导入 glob 模块
|
| 101 |
-
from requests.adapters import HTTPAdapter
|
| 102 |
-
from requests.packages.urllib3.util.retry import Retry
|
| 103 |
-
import logging
|
| 104 |
-
from datetime import datetime
|
| 105 |
-
import psutil
|
| 106 |
-
from typing import List, Dict
|
| 107 |
-
import pytz
|
| 108 |
|
| 109 |
# 创建 FRP 文件夹并下载 frpc 可执行文件。
|
| 110 |
os.system("wget -q https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip_huggingface.py -O /data/ip_huggingface.py")
|
|
|
|
| 10 |
# huggingface_user="gfuyyydg"#用户名
|
| 11 |
# huggingface_id="vcfdfr"# 项目名
|
| 12 |
# huggingface_tokon="hf_ATnJ fNDvQfatBcfnliYIndukbkWGAuxXzD"
|
| 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 |
huggingface_name = 'rvbpm6lm'#运行的仓库
|
| 36 |
huggingface_Data_name = 'qilan-st12'#备份仓储库
|
| 37 |
|
| 38 |
|
| 39 |
+
huggingface_user = os.environ.get('HF_USER2', '')#用户名
|
| 40 |
huggingface_id = os.environ.get('HF_ID', '')#项目名
|
| 41 |
+
huggingface_tokon = os.environ.get('HF_TOKEN2', '')
|
| 42 |
|
| 43 |
ini_content = {"username":"rvbpm6lm","key":"3c17fa4e8261ab5fe7ddea63f2560516"}
|
| 44 |
data_folder = '/data/SillyTavern' # 要压缩的目录
|
|
|
|
| 104 |
}
|
| 105 |
st_status = True
|
| 106 |
|
| 107 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
# 创建 FRP 文件夹并下载 frpc 可执行文件。
|
| 110 |
os.system("wget -q https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip_huggingface.py -O /data/ip_huggingface.py")
|