quivr/backend/parsers/epub.py

8 lines
276 B
Python
Raw Normal View History

2023-05-21 09:15:31 +03:00
from .common import process_file
from langchain.document_loaders.epub import UnstructuredEPubLoader
from fastapi import UploadFile
2023-05-22 09:39:55 +03:00
def process_epub(file: UploadFile, enable_summarization):
return process_file(file, UnstructuredEPubLoader, ".epub", enable_summarization)