2024-10-24 10:56:33 +08:00

14 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from flask_app.general.通义千问long import upload_file,qianwen_long
file_path="C:\\Users\\Administrator\\Desktop\\招标文件\\招标test文件夹\\zbtest19\\zbtest19_214-320.pdf"
user_query="""该文件为投标文件格式要求,请你根据该招标文件回答:营业执照应该附在哪个地方?你可能需要查找以下章节出现的地方:'具有独立承担民事责任能力的法人','投标人基本信息表','法人或者其他组织的营业执照等证明文件,自然人的身份证明','投标人情况介绍','投标人简介','企业相关证件'
我需要将营业执照贴在该章节的最后面目前我需要定位到插入的位置请你返回给我插入位置的上下文字数限制在30字以内以json格式返回键名分别是'上文','下文',上下文应格式内容完全与原文保持一致,不得擅自删减总结,示例输出如下:
{
"上文":"投标人: (盖单位章)
年 月 日",
"下文":"四、投标保证金
(招标人名称):"
}
"""
file_id=upload_file(file_path)
res=qianwen_long(file_id,user_query)
print(res)