前端增加自动选择工作流的功能

This commit is contained in:
xunbu
2025-08-08 15:42:21 +08:00
parent 2a8a4d0317
commit 269938cad9
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -6,6 +6,7 @@ from typing import Self, Generic, TypeVar
from docutranslate.exporter.base import Exporter from docutranslate.exporter.base import Exporter
from docutranslate.ir.document import Document from docutranslate.ir.document import Document
from docutranslate.workflow.txt_workflow import TXTWorkflow, TXTWorkflowConfig
@dataclass(kw_only=True) @dataclass(kw_only=True)
@@ -56,3 +57,5 @@ class Workflow(ABC, Generic[T_Config,T_original, T_Translated]):
output_path.write_bytes(docu.content) output_path.write_bytes(docu.content)
self.logger.info(f"文件已保存到{output_path.resolve()}") self.logger.info(f"文件已保存到{output_path.resolve()}")
return self return self