From 20b57144b0e7503308cc2e5c0e98a4f81c1160af Mon Sep 17 00:00:00 2001 From: dashi6174 Date: Mon, 27 May 2024 08:20:32 +0800 Subject: [PATCH] syntax error (#924) ### What problem does this PR solve? _Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._ ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/chunk_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/chunk_app.py b/api/apps/chunk_app.py index 3b588db94..4f98eaa07 100644 --- a/api/apps/chunk_app.py +++ b/api/apps/chunk_app.py @@ -150,7 +150,7 @@ def set(): if len(arr) != 2: return get_data_error_result( retmsg="Q&A must be separated by TAB/ENTER key.") - q, a = rmPrefix(arr[0]), rmPrefix[arr[1]] + q, a = rmPrefix(arr[0]), rmPrefix(arr[1]) d = beAdoc(d, arr[0], arr[1], not any( [rag_tokenizer.is_chinese(t) for t in q + a]))