Pārlūkot izejas kodu

测试GPU性能

罗俊辉 10 mēneši atpakaļ
vecāks
revīzija
4a55301321
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 2 0
      applications/pipeline.py
  2. 2 2
      test/article_list.py

+ 2 - 0
applications/pipeline.py

@@ -45,10 +45,12 @@ class LongArticlesPipeline(object):
         # if "【1】" in plan_name or "【2】" in plan_name:
         index_list_1 = [1, 2]
         index_list_2 = [1, 2, 3, 4, 5, 6, 7, 8]
+        print("开始请求")
         account_title_list_1 = cls.get_titles(
             account_nickname,
             index_list=index_list_1
         )
+        print(account_title_list_1)
         account_title_list_2 = cls.get_titles(
             account_nickname,
             index_list=index_list_2

+ 2 - 2
test/article_list.py

@@ -3,14 +3,14 @@
 """
 import requests
 
-url = "http://localhost:6062/title_list"
+url = "http://47.98.154.124:6060/title_list"
 
 response = requests.request(
     "POST",
     url=url,
     headers={},
     json={
-        "account_name": "指尖奇文",
+        "account_name": "趣味晚年",
         "index_list": [1, 2],
         "min_time": None,
         "max_time": None,