mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 01:55:15 +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) |