quivr/backend/parsers/odt.py

9 lines
280 B
Python
Raw Normal View History

2023-05-30 14:02:48 +03:00
from fastapi import UploadFile
from langchain.document_loaders import UnstructuredODTLoader
from .common import process_file
def process_odt(file: UploadFile, enable_summarization, user):
return process_file(file, UnstructuredODTLoader, ".odt", enable_summarization, user)