mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
fix QWenSeq2txt bug (#2245)
### What problem does this PR solve? #2243 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -71,7 +71,7 @@ class QWenSeq2txt(Base):
|
||||
ans = ""
|
||||
if result.status_code == HTTPStatus.OK:
|
||||
for sentence in result.get_sentence():
|
||||
ans += str(sentence + '\n')
|
||||
ans += sentence.text.decode('utf-8') + '\n'
|
||||
return ans, num_tokens_from_string(ans)
|
||||
|
||||
return "**ERROR**: " + result.message, 0
|
||||
|
||||
Reference in New Issue
Block a user