mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-20 01:21:50 +03:00
8 lines
276 B
Python
8 lines
276 B
Python
from .common import process_file
|
|
from langchain.document_loaders.epub import UnstructuredEPubLoader
|
|
from fastapi import UploadFile
|
|
|
|
|
|
def process_epub(file: UploadFile, enable_summarization):
|
|
return process_file(file, UnstructuredEPubLoader, ".epub", enable_summarization)
|