瀏覽代碼

测试GPU性能

罗俊辉 9 月之前
父節點
當前提交
aad15ff64a
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      alg.toml
  2. 1 1
      applications/config.py
  3. 1 1
      test/nlp_dev.py

+ 1 - 1
alg.toml

@@ -1,5 +1,5 @@
 reload = true
-bind = "0.0.0.0:6062"
+bind = "0.0.0.0:6060"
 workers = 4
 keep_alive_timeout = 120  # 保持连接的最大秒数,根据需要调整
 graceful_timeout = 30    # 重启或停止之前等待当前工作完成的时间

+ 1 - 1
applications/config.py

@@ -4,6 +4,6 @@
 # 默认数据库表
 db_config = ""
 
-port = "6062"
+port = "6060"
 
 ip = "localhost"

+ 1 - 1
test/nlp_dev.py

@@ -192,7 +192,7 @@ def test_request(url):
     print(b - a)
 
 
-url_list = ["http://192.168.100.31:6061/nlp"]
+url_list = ["http://192.168.100.31:6062/nlp"]
 test_request(url_list[0])
 # with ThreadPoolExecutor(max_workers=3) as Pool:
 #     Pool.map(test_request, url_list)