Skip to content

Commit

Permalink
Merge pull request #341 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
补充遗漏依赖库;更新违禁词库;
  • Loading branch information
Ikaros-521 authored Sep 24, 2023
2 parents ccb8856 + ab530e0 commit ada599a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,6 @@ tmp/
cookie/*.json

# 数据库
data/data.db
data/data.db

main2.py
8 changes: 0 additions & 8 deletions data/badwords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@
郭树清
电驴
监督
叶剑英
龜头
简历
Expand Down Expand Up @@ -635,7 +634,6 @@
幼圖
屏蔽
龙虎靠
高强
氵去
潘国平
诱奸
Expand Down Expand Up @@ -3574,7 +3572,6 @@
赵洪祝
肉棍
十七大
预测
彭冲
朝鲁
Expand Down Expand Up @@ -3761,7 +3758,6 @@
毛发抡
发纶
笨屄
汪洋
阀囵
藏青会
極景
Expand Down Expand Up @@ -3941,7 +3937,6 @@
江擇民
包二奶
柯碱
资格
美沙酮
植物冰
性欲
Expand Down Expand Up @@ -4854,7 +4849,6 @@
军刃
穴海
大麻油
腾讯
人民报
土仿狗
吴学灿
Expand Down Expand Up @@ -5187,13 +5181,11 @@
正清網
党中央
中办发
杨帆
失忆药
駛你公
罚沦
毛花柳
癟三
格斗
丁香岛
昏迷药
调教
Expand Down
3 changes: 2 additions & 1 deletion requirements_bilibili.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ langchain==0.0.142
pyhandytools
curl_cffi
zhipuai
bardapi
bardapi
revTongYi
2 changes: 1 addition & 1 deletion utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def is_url_check(self, text):
# return False


# 语言检测
# 语言检测 TODO:有内存泄漏风险
def lang_check(self, text, need="none"):
# 语言检测 一个是语言,一个是概率
language, score = langid.classify(text)
Expand Down

0 comments on commit ada599a

Please sign in to comment.