quivr/backend/parsers/odt.py

10 lines
388 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 utils.common 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)