mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +03:00
e53bc6807d
* 🗃️ add new tables for multiple brains * 🗑️ remove date input from fetch_user_id_from_credentials * ✨ new /brain endpoints * ♻️ refactor backend utils by splitting it into files * 💡 comments for next actions to update /upload
10 lines
410 B
Python
10 lines
410 B
Python
from fastapi import UploadFile
|
|
from langchain.document_loaders import UnstructuredPowerPointLoader
|
|
from utils.common import CommonsDep
|
|
|
|
from .common import process_file
|
|
|
|
|
|
def process_powerpoint(commons: CommonsDep, file: UploadFile, enable_summarization, user, user_openai_api_key):
|
|
return process_file(commons, file, UnstructuredPowerPointLoader, ".pptx", enable_summarization, user, user_openai_api_key)
|