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