소스 검색

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

zhch158_admin 3 주 전
부모
커밋
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']