added support for epub

This commit is contained in:
ethan
2023-05-16 14:25:03 -07:00
parent 51e06f9cfd
commit 93c5de524f

View File

@@ -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()