瀏覽代碼

修正数据输出目录-数据标准化模块

chaixuhong 5 天之前
父節點
當前提交
08f51c447d
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      llmops/agents/data_stardard.py

+ 2 - 3
llmops/agents/data_stardard.py

@@ -215,9 +215,8 @@ JSON Array:
         """
         current_script_path = os.path.abspath(__file__)
         current_dir = os.path.dirname(current_script_path)
-
-        file_name = os.path.splitext(file_path)[0]  # 不带后缀 11111
-
+        file_full_name = os.path.basename(file_path)
+        file_name = os.path.splitext(file_full_name)[0]  # 不带后缀 11111
         output_dir = os.path.normpath(os.path.join(current_dir, "..", "..", output_dir))
 
         os.makedirs(output_dir, exist_ok=True)