mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-27 13:22:44 +03:00
8 lines
289 B
Python
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)
|