2.17 增加读文件pdf接口测试1
This commit is contained in:
parent
ca97fd74bd
commit
3c006884d1
@ -28,13 +28,13 @@ def process_file():
|
||||
# 生成唯一文件名
|
||||
filename = os.path.join(output_folder,'ztbfile.pdf')
|
||||
file_path,file_type=download_file(file_url, filename)
|
||||
# # print(file_path)
|
||||
# # 调用预处理函数
|
||||
# result = read_pdf_main(pdf_path=file_path)
|
||||
#
|
||||
# # 处理结果
|
||||
# if not result:
|
||||
# return jsonify({'error': 'File processing failed'})
|
||||
# print(file_path)
|
||||
# 调用预处理函数
|
||||
result = read_pdf_main(pdf_path=file_path)
|
||||
|
||||
# 处理结果
|
||||
if not result:
|
||||
return jsonify({'error': 'File processing failed'})
|
||||
response_data={
|
||||
"处理结果":"yes"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user