Skip to content

Commit

Permalink
Merge pull request #815 from feloy/fix-814/md-files-summarizer
Browse files Browse the repository at this point in the history
fix: support application/octet-stream file type
  • Loading branch information
rhatdan authored Nov 20, 2024
2 parents 9e3acba + ec31a71 commit e7647af
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 e7647af

Please sign in to comment.