Browse Source

文章生成字数: 1000+
公众号修改为: 生活情感叁读

罗俊辉 1 year ago
parent
commit
2dc7ef6e4e
3 changed files with 4 additions and 4 deletions
  1. 2 2
      applications/functions.py
  2. 1 1
      applications/migrate.py
  3. 1 1
      applications/pipeline.py

+ 2 - 2
applications/functions.py

@@ -146,7 +146,7 @@ def title_filter(title_list):
     """
     url = "http://61.48.133.26:8179/score_list"
     body = {
-        "account_nickname_list": ["指尖奇文"],
+        "account_nickname_list": ["生活情感叁读"],
         "text_list": title_list,
         "max_time": None,
         "min_time": None,
@@ -155,6 +155,6 @@ def title_filter(title_list):
         "rate": 0.1
     }
     response = requests.post(url=url, headers={}, json=body).json()
-    score_list = response['指尖奇文']['score_list']
+    score_list = response['生活情感叁读']['score_list']
     # title_score_list = list(zip(title_list, score_list))
     return score_list

+ 1 - 1
applications/migrate.py

@@ -26,7 +26,7 @@ def migrate_daily(dt):
     print("{} successfully insert {} rows, totally cost {} seconds".format(dt, len(data), b - a))
 
 
-dt_list = generate_daily_strings("20240628", "20240701")
+dt_list = generate_daily_strings("20240701", "20240702")
 for dt in dt_list:
     print(dt)
     migrate_daily(dt)

+ 1 - 1
applications/pipeline.py

@@ -123,7 +123,7 @@ def summary_articles(materials):
         ## OutputFormat:
         返回json格式,key, value如下
         "title": 总结上述材料的标题,
-        "text":  编写的文章
+        "text":  编写的文章,文章字数在1000字以上。
         """
         response = kimi_ai(prompt=prompt)
         try: