From c828a74639c3317d5a3a4f723fc79f4ecf1aeec8 Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Thu, 7 Nov 2024 15:50:58 +0800 Subject: [PATCH] =?UTF-8?q?11.7=20=E8=B5=84=E6=A0=BC=E5=AE=A1=E6=9F=A5?= =?UTF-8?q?=E8=B4=A7=E7=89=A9=E6=A0=87=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/货物标/技术参数要求提取.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_app/货物标/技术参数要求提取.py b/flask_app/货物标/技术参数要求提取.py index 1c2cb06..05432f3 100644 --- a/flask_app/货物标/技术参数要求提取.py +++ b/flask_app/货物标/技术参数要求提取.py @@ -92,7 +92,7 @@ def postprocess(data): def get_technical_requirements(file_id,invalid_path): first_query="该文档中是否说明了采购需求,即需要采购哪些货物?如果有,请回答'是',否则,回答'否'" judge_res=qianwen_long(file_id,first_query) - print(judge_res) + # print(judge_res) if '否' in judge_res: file_id=upload_file(invalid_path) user_query1 = """ @@ -110,7 +110,7 @@ def get_technical_requirements(file_id,invalid_path): } """ res = qianwen_long(file_id, user_query1) - print(res) + # print(res) cleaned_res = clean_json_string(res) #转字典 keys_list,good_list,no_keys_added= generate_key_paths(cleaned_res['采购需求']) # 提取需要采购的货物清单 if '采购需求' in cleaned_res: