Update server2.py
Browse files- server2.py +23 -0
server2.py
CHANGED
|
@@ -37,7 +37,28 @@ local_ip = 127.0.0.1
|
|
| 37 |
local_port = 8000
|
| 38 |
remote_port = 7073
|
| 39 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
kaggle_metadata = {
|
| 42 |
"title": "Your Dataset Title",
|
| 43 |
"id": f"{huggingface_name}/{huggingface_Data_name}",
|
|
@@ -613,6 +634,8 @@ if os.path.exists(f'{data_folder}/start.sh'):
|
|
| 613 |
Service_status = True
|
| 614 |
frp(config_data2,'/content/frp/frpc2.ini',True)
|
| 615 |
frp(config_data,'/content/frp/frpc.ini',True)
|
|
|
|
|
|
|
| 616 |
# 以线程的形式运行 frp 任务
|
| 617 |
# frp_thread1 = threading.Thread(target=frp, args=(config_data2, '/content/frp/frpc2.ini', True))
|
| 618 |
# frp_thread1.start()
|
|
|
|
| 37 |
local_port = 8000
|
| 38 |
remote_port = 7073
|
| 39 |
"""
|
| 40 |
+
config_data3 = """
|
| 41 |
+
[common]
|
| 42 |
+
server_addr = 139.196.58.37
|
| 43 |
+
server_port = 7000
|
| 44 |
|
| 45 |
+
[kjashdsh0144]
|
| 46 |
+
type = tcp
|
| 47 |
+
local_ip = 127.0.0.1
|
| 48 |
+
local_port = 8000
|
| 49 |
+
remote_port = 7073
|
| 50 |
+
"""
|
| 51 |
+
config_data4 = """
|
| 52 |
+
[common]
|
| 53 |
+
server_addr = 39.108.131.169
|
| 54 |
+
server_port = 7000
|
| 55 |
+
|
| 56 |
+
[kjashdsh0144]
|
| 57 |
+
type = tcp
|
| 58 |
+
local_ip = 127.0.0.1
|
| 59 |
+
local_port = 8000
|
| 60 |
+
remote_port = 7073
|
| 61 |
+
"""
|
| 62 |
kaggle_metadata = {
|
| 63 |
"title": "Your Dataset Title",
|
| 64 |
"id": f"{huggingface_name}/{huggingface_Data_name}",
|
|
|
|
| 634 |
Service_status = True
|
| 635 |
frp(config_data2,'/content/frp/frpc2.ini',True)
|
| 636 |
frp(config_data,'/content/frp/frpc.ini',True)
|
| 637 |
+
frp(config_data3,'/content/frp/frpc3.ini',True)
|
| 638 |
+
frp(config_data4,'/content/frp/frpc4.ini',True)
|
| 639 |
# 以线程的形式运行 frp 任务
|
| 640 |
# frp_thread1 = threading.Thread(target=frp, args=(config_data2, '/content/frp/frpc2.ini', True))
|
| 641 |
# frp_thread1.start()
|