From 6f8a98c5180b6f8f29ff72e019d566a1fbf4a4b3 Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Fri, 3 Jan 2025 11:00:18 +0800 Subject: [PATCH] =?UTF-8?q?1.3=20=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/货物标/提取采购需求main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_app/货物标/提取采购需求main.py b/flask_app/货物标/提取采购需求main.py index d109ec4..821e921 100644 --- a/flask_app/货物标/提取采购需求main.py +++ b/flask_app/货物标/提取采购需求main.py @@ -52,9 +52,9 @@ def fetch_procurement_reqs(procurement_path, invalid_path): # 使用 ThreadPoolExecutor 并行处理 get_technical_requirements 和 get_business_requirements with concurrent.futures.ThreadPoolExecutor() as executor: # 提交任务给线程池 - future_technical = executor.submit(get_technical_requirements, invalid_path, processed_filepath,tech_model_type) + future_technical = executor.submit(get_technical_requirements, invalid_path, processed_filepath, tech_model_type) time.sleep(0.5) # 保持原有的延时 - future_business = executor.submit(get_business_requirements, procurement_path, processed_filepath,busi_model_type) + future_business = executor.submit(get_business_requirements, procurement_path, processed_filepath, busi_model_type) # 获取并行任务的结果 technical_requirements = future_technical.result() business_requirements = future_business.result()