quivr/backend/parsers/epub.py
2023-05-21 11:45:31 +05:30

8 lines
289 B
Python

from .common import process_file
from langchain.document_loaders.epub import UnstructuredEPubLoader
from fastapi import UploadFile
def process_epub(vector_store, file: UploadFile, stats_db):
return process_file(vector_store, file, UnstructuredEPubLoader, ".epub", stats_db=stats_db)