Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
3688955c
"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "5e8d91c3cf9b35f8d3e4adeeb687db0e41aa095a"
Commit
3688955c
authored
Mar 25, 2024
by
Timothy J. Baek
Browse files
fix: encoding issue
parent
6307adfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/rag/main.py
backend/apps/rag/main.py
+1
-1
No files found.
backend/apps/rag/main.py
View file @
3688955c
...
...
@@ -411,7 +411,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str):
elif
file_ext
==
"xml"
:
loader
=
UnstructuredXMLLoader
(
file_path
)
elif
file_ext
in
[
"htm"
,
"html"
]:
loader
=
BSHTMLLoader
(
file_path
)
loader
=
BSHTMLLoader
(
file_path
,
open_encoding
=
"unicode_escape"
)
elif
file_ext
==
"md"
:
loader
=
UnstructuredMarkdownLoader
(
file_path
)
elif
file_content_type
==
"application/epub+zip"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment