mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-26 04:42:31 +03:00
8 lines
281 B
Python
8 lines
281 B
Python
from .common import process_file
|
|
from langchain.document_loaders import UnstructuredMarkdownLoader
|
|
from fastapi import UploadFile
|
|
|
|
|
|
def process_markdown(file: UploadFile, enable_summarization):
|
|
return process_file(file, UnstructuredMarkdownLoader, ".md", enable_summarization)
|