"git@developer.sourcefind.cn:change/sglang.git" did not exist on "dc1decc6af6c777c4ea8c2791c46ac89345a0579"
Commit 3688955c authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: encoding issue

parent 6307adfb
...@@ -411,7 +411,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str): ...@@ -411,7 +411,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str):
elif file_ext == "xml": elif file_ext == "xml":
loader = UnstructuredXMLLoader(file_path) loader = UnstructuredXMLLoader(file_path)
elif file_ext in ["htm", "html"]: elif file_ext in ["htm", "html"]:
loader = BSHTMLLoader(file_path) loader = BSHTMLLoader(file_path, open_encoding="unicode_escape")
elif file_ext == "md": elif file_ext == "md":
loader = UnstructuredMarkdownLoader(file_path) loader = UnstructuredMarkdownLoader(file_path)
elif file_content_type == "application/epub+zip": elif file_content_type == "application/epub+zip":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment