mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-26 21:02:31 +03:00
6 lines
259 B
Python
6 lines
259 B
Python
from common import process_file
|
|
from langchain.document_loaders import TextLoader
|
|
from fastapi import UploadFile
|
|
|
|
async def process_txt(vector_store, file: UploadFile, stats_db):
|
|
return await process_file(vector_store, file, TextLoader, stats_db=stats_db) |