From ee361e6a8d536b2f453bc0e6967e00668bf8a806 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Thu, 10 Jul 2025 08:27:52 +0800 Subject: [PATCH] 'commit' --- dsRagAnything/Test/Ocr/QWenOcr.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dsRagAnything/Test/Ocr/QWenOcr.py b/dsRagAnything/Test/Ocr/QWenOcr.py index 3b3532fb..3ade6afc 100644 --- a/dsRagAnything/Test/Ocr/QWenOcr.py +++ b/dsRagAnything/Test/Ocr/QWenOcr.py @@ -29,4 +29,10 @@ completion = client.chat.completions.create( } ]) -print(completion.choices[0].message.content) \ No newline at end of file +print(completion.choices[0].message.content) + +# 将返回的内容保存到 2、识别出结果.md 中 +with open('2、识别出结果.md', 'w', encoding='utf-8') as f: + f.write(completion.choices[0].message.content) + +print("保存成功!") \ No newline at end of file