Skip to content

Commit

Permalink
fix: support application/octet-stream file type
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Martin <[email protected]>
  • Loading branch information
feloy committed Nov 20, 2024
1 parent 9e3acba commit ec31a71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def read_file(file):
pages = loader.load()
text = "".join([p.page_content for p in pages])

if file_type in ["text/markdown", "text/plain"]:
if file_type in ["text/markdown", "text/plain", "application/octet-stream"]:
text = file.read().decode()

return text
Expand Down

0 comments on commit ec31a71

Please sign in to comment.