quivr/backend/parsers/odt.py

10 lines
391 B
Python
Raw Normal View History

2023-05-30 14:02:48 +03:00
from fastapi import UploadFile
from langchain.document_loaders import UnstructuredODTLoader
2023-06-19 23:46:25 +03:00
from models.settings import CommonsDep
2023-05-30 14:02:48 +03:00
from .common import process_file
def process_odt(commons: CommonsDep, file: UploadFile, enable_summarization, user, user_openai_api_key):
return process_file(commons, file, UnstructuredODTLoader, ".odt", enable_summarization, user, user_openai_api_key)