dashi6174 commited on
Commit
39b9b55
·
1 Parent(s): af5bb18

syntax error (#924)

Browse files

### 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)

Files changed (1) hide show
  1. api/apps/chunk_app.py +1 -1
api/apps/chunk_app.py CHANGED
@@ -150,7 +150,7 @@ def set():
150
  if len(arr) != 2:
151
  return get_data_error_result(
152
  retmsg="Q&A must be separated by TAB/ENTER key.")
153
- q, a = rmPrefix(arr[0]), rmPrefix[arr[1]]
154
  d = beAdoc(d, arr[0], arr[1], not any(
155
  [rag_tokenizer.is_chinese(t) for t in q + a]))
156
 
 
150
  if len(arr) != 2:
151
  return get_data_error_result(
152
  retmsg="Q&A must be separated by TAB/ENTER key.")
153
+ q, a = rmPrefix(arr[0]), rmPrefix(arr[1])
154
  d = beAdoc(d, arr[0], arr[1], not any(
155
  [rag_tokenizer.is_chinese(t) for t in q + a]))
156