mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Fix: CSV loader encoding issue using autodetect_encoding=True
This commit is contained in:
parent
66015bb341
commit
e782e7d3a7
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ class Loader:
|
||||||
file_path, extract_images=self.kwargs.get("PDF_EXTRACT_IMAGES")
|
file_path, extract_images=self.kwargs.get("PDF_EXTRACT_IMAGES")
|
||||||
)
|
)
|
||||||
elif file_ext == "csv":
|
elif file_ext == "csv":
|
||||||
loader = CSVLoader(file_path)
|
loader = CSVLoader(file_path, autodetect_encoding=True)
|
||||||
elif file_ext == "rst":
|
elif file_ext == "rst":
|
||||||
loader = UnstructuredRSTLoader(file_path, mode="elements")
|
loader = UnstructuredRSTLoader(file_path, mode="elements")
|
||||||
elif file_ext == "xml":
|
elif file_ext == "xml":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue