瀏覽代碼

feat: 修改 find_available_ocr_files_multi_source 函数,简化数据源唯一标识生成逻辑

zhch158_admin 1 周之前
父節點
當前提交
4a914d9089
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ocr_validator_utils.py

+ 1 - 1
ocr_validator_utils.py

@@ -823,7 +823,7 @@ def find_available_ocr_files_multi_source(config: Dict) -> Dict[str, List[Dict]]
     for source in config.get('data_sources', []):
         source_name = source['name']
         ocr_tool = source['ocr_tool']
-        source_key = f"{source_name}_{ocr_tool}"  # 创建唯一标识
+        source_key = f"{source_name}"
         
         ocr_out_dir = source['ocr_out_dir']