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: