浏览代码

Added description for .ppt, specify the reason for unstructured.io (#9452)

Co-authored-by: crazywoola <427733928@qq.com>
tags/0.10.2
Zixuan Cheng 1年前
父节点
当前提交
88dec6ef2b
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      api/core/rag/extractor/extract_processor.py

+ 2
- 0
api/core/rag/extractor/extract_processor.py 查看文件

@@ -121,6 +121,8 @@ class ExtractProcessor:
extractor = UnstructuredEmailExtractor(file_path, unstructured_api_url, unstructured_api_key)
elif file_extension == ".ppt":
extractor = UnstructuredPPTExtractor(file_path, unstructured_api_url, unstructured_api_key)
# You must first specify the API key
# because unstructured_api_key is necessary to parse .ppt documents
elif file_extension == ".pptx":
extractor = UnstructuredPPTXExtractor(file_path, unstructured_api_url, unstructured_api_key)
elif file_extension == ".xml":

正在加载...
取消
保存