fix(知识库): 优化解决ppt中图片解析同步dify时去掉base64数据
This commit is contained in:
1 parent
d4f629106f
commit
c1c4efe4f1
4 files changed
+59
-16
No files matched your search
@@ -16,7 +16,7 @@ _MIN_TEXT_HEAVY_IMAGE_BYTES = 24 * 1024
|
||||
|
||||
|
||||
def _is_scanned(text_chars: int, pages: int) -> bool:
|
||||
return text_chars < int(300 * max(pages, 1) / 10)
|
||||
return text_chars < int(150 * max(pages, 1))
|
||||
|
||||
|
||||
def _is_text_heavy_pdf(text_chars: int, pages: int) -> bool:
|
||||
|
||||
Reference in new issue
Block a user