mirror of
https://github.com/e-johnstonn/BriefGPT.git
synced 2026-01-09 13:57:58 -05:00
added support for epub
This commit is contained in:
@@ -36,6 +36,7 @@ def doc_loader(file_path: str):
|
||||
loader = UnstructuredEPubLoader(file_path)
|
||||
except Exception as e:
|
||||
st.warning('Error loading file - ensure you have pandoc installed and added to PATH.')
|
||||
return None
|
||||
|
||||
return loader.load()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user