quivr/backend/parsers/docx.py
2023-05-21 23:39:55 -07:00

8 lines
255 B
Python

from .common import process_file
from langchain.document_loaders import Docx2txtLoader
from fastapi import UploadFile
def process_docx(file: UploadFile, enable_summarization):
return process_file(file, Docx2txtLoader, ".docx", enable_summarization)