样式修改,修改提示词

This commit is contained in:
xunbu
2025-05-21 22:55:14 +08:00
parent d03bef6d96
commit 68c6d545de
6 changed files with 78 additions and 64 deletions

View File

@@ -38,6 +38,7 @@ class FileTranslater:
self.docling_artifact = docling_artifact
if docling_artifact is None:
artifact_path = Path("./docling_artifact")
print(f"artifact_path:{artifact_path.resolve()}existed{artifact_path.is_dir()}")
if artifact_path.is_dir():
translater_logger.info("检测到docling_artifact文件夹")
self.docling_artifact = artifact_path