From 06157070f2dcc6872afa20e0613cf8427ef974d2 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Sat, 28 Jun 2025 17:45:09 +0800 Subject: [PATCH] 'commit' --- dsRag/Start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsRag/Start.py b/dsRag/Start.py index 0d2cf792..838c2ea3 100644 --- a/dsRag/Start.py +++ b/dsRag/Start.py @@ -94,7 +94,7 @@ async def save_to_word(request: Request): # 使用pandoc转换 output_file = os.path.join(tempfile.gettempdir(), "【理想大模型】问答.docx") - subprocess.run(['pandoc', temp_html, '-o', output_file], check=True) + subprocess.run(['pandoc', temp_html, '-o', output_file,'--resource-path=static'], check=True) # 读取生成的Word文件 with open(output_file, "rb") as f: