Qilan2 commited on
Commit
3568930
·
verified ·
1 Parent(s): 25ac70a

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +12 -0
server.py CHANGED
@@ -45,6 +45,16 @@ local_ip = 127.0.0.1
45
  local_port = 8000
46
  remote_port = 7070
47
  """
 
 
 
 
 
 
 
 
 
 
48
  kaggle_metadata = {
49
  "title": "Your Dataset Title",
50
  "id": f"{huggingface_name}/{huggingface_Data_name}",
@@ -613,6 +623,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()
 
45
  local_port = 8000
46
  remote_port = 7070
47
  """
48
+ config_data4 = """
49
+ [common]
50
+ server_addr = 175.178.165.186
51
+ server_port = 7000
52
+ [safg541211ha]
53
+ type = tcp
54
+ local_ip = 127.0.0.1
55
+ local_port = 8000
56
+ remote_port = 7070
57
+ """
58
  kaggle_metadata = {
59
  "title": "Your Dataset Title",
60
  "id": f"{huggingface_name}/{huggingface_Data_name}",
 
623
  Service_status = True
624
  frp(config_data2,'/content/frp/frpc2.ini',True)
625
  frp(config_data,'/content/frp/frpc.ini',True)
626
+ frp(config_data3,'/content/frp/frpc3.ini',True)
627
+ frp(config_data4,'/content/frp/frpc4.ini',True)
628
  # 以线程的形式运行 frp 任务
629
  # frp_thread1 = threading.Thread(target=frp, args=(config_data2, '/content/frp/frpc2.ini', True))
630
  # frp_thread1.start()