quivr/backend/parsers/epub.py

8 lines
289 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
def process_epub(vector_store, file: UploadFile, stats_db):
return process_file(vector_store, file, UnstructuredEPubLoader, ".epub", stats_db=stats_db)