rename get_txt to get_text (#2649)

### What problem does this PR solve?



### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2024-09-29 12:47:09 +08:00
committed by GitHub
parent fb694143ee
commit fc867cb959
6 changed files with 13 additions and 12 deletions

View File

@ -14,7 +14,7 @@
from rag.nlp import find_codec
def get_txt(fnm: str, binary=None) -> str:
def get_text(fnm: str, binary=None) -> str:
txt = ""
if binary:
encoding = find_codec(binary)