Kaynağa Gözat

测试GPU性能

罗俊辉 10 ay önce
ebeveyn
işleme
9b5e5e9b80

+ 2 - 2
applications/functions/article_account.py

@@ -10,7 +10,7 @@ class ArticleRank(object):
     """
     账号排序
     """
-    url = "http://192.168.100.31:8179/score_list"
+    url = "http://localhost:6062/score_list"
 
     @classmethod
     def rank(cls, account_list, text_list):
@@ -25,7 +25,7 @@ class ArticleRank(object):
             "text_list": text_list,
             "max_time": None,
             "min_time": None,
-            "interest_type": "by_avg",
+            "interest_type": "avg",
             "sim_type": "mean",
             "rate": 0.1
         }

+ 9 - 0
routes/__init__.py

@@ -60,6 +60,15 @@ def AlgRoutes(mysql_client, model):
         response = await AS.deal()
         return jsonify(response)
 
+    @blueprint.route("/title_list", methods=["POST"])
+    async def accountTitle():
+        """
+        获取账号的标题list
+        :return:
+        """
+        params = await request.get_json()
+        return None
+
     @blueprint.route("/article_crawler", methods=["POST"])
     async def articleMysql():
         """

+ 2 - 2
routes/articleDBServer.py

@@ -76,8 +76,8 @@ class ArticleSpider(object):
             appMsgId = info.get("AppMsg", {}).get("BaseInfo", {}).get("AppMsgId", None)
             createTime = info.get("AppMsg", {}).get("BaseInfo", {}).get("CreateTime", None)
             updateTime = info.get("AppMsg", {}).get("BaseInfo", {}).get("UpdateTime", None)
-            if int(time.time()) - int(updateTime) <= 20 * 60 * 60:
-                continue
+            # if int(time.time()) - int(updateTime) <= 20 * 60 * 60:
+            #     continue
             Type = info.get("AppMsg", {}).get("BaseInfo", {}).get("Type", None)
             detail_article_list = info.get("AppMsg", {}).get("DetailInfo", [])
             if detail_article_list: