2023-05-31 14:51:23 +03:00
|
|
|
from langchain.document_loaders import UnstructuredPowerPointLoader
|
2023-06-28 20:39:27 +03:00
|
|
|
from models.files import File
|
2023-06-19 23:46:25 +03:00
|
|
|
from models.settings import CommonsDep
|
2023-05-31 14:51:23 +03:00
|
|
|
|
|
|
|
from .common import process_file
|
2023-05-16 17:24:06 +03:00
|
|
|
|
2023-05-22 09:39:55 +03:00
|
|
|
|
2023-06-28 20:39:27 +03:00
|
|
|
def process_powerpoint(commons: CommonsDep, file: File, enable_summarization, brain_id, user_openai_api_key):
|
|
|
|
return process_file(commons, file, UnstructuredPowerPointLoader, enable_summarization, brain_id, user_openai_api_key)
|