mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-08 10:26:50 +08:00
install pandoc (#16825)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
import pypandoc # type: ignore
|
||||
|
||||
from core.rag.extractor.extractor_base import BaseExtractor
|
||||
from core.rag.models.document import Document
|
||||
|
||||
@@ -34,6 +36,7 @@ class UnstructuredEpubExtractor(BaseExtractor):
|
||||
else:
|
||||
from unstructured.partition.epub import partition_epub
|
||||
|
||||
pypandoc.download_pandoc()
|
||||
elements = partition_epub(filename=self._file_path, xml_keep_tags=True)
|
||||
|
||||
from unstructured.chunking.title import chunk_by_title
|
||||
|
||||
Reference in New Issue
Block a user