Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ model, tokenizer = load_llm_from_pretrained(pretrained_model_path)
|
|
20 |
# 検出結果を生成
|
21 |
def detect_ng_word(input_text):
|
22 |
response = []
|
23 |
-
rtn_s = search_ng_word(
|
24 |
-
rtn_o = search_ng_word(
|
25 |
rtn = rtn_s + rtn_o
|
26 |
|
27 |
if len(rtn) == 0:
|
|
|
20 |
# 検出結果を生成
|
21 |
def detect_ng_word(input_text):
|
22 |
response = []
|
23 |
+
rtn_s = search_ng_word(input_text, ng_wordlist_1_s, ng_wordlist_2_s)
|
24 |
+
rtn_o = search_ng_word(input_text, ng_wordlist_1_o, ng_wordlist_2_o)
|
25 |
rtn = rtn_s + rtn_o
|
26 |
|
27 |
if len(rtn) == 0:
|