11.7 资格审查货物标修改
This commit is contained in:
parent
6e6400ce34
commit
c828a74639
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user