Browse Source

优化

pull/225/head
chenzhihang 9 months ago
parent
commit
6c38d8d12e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/MachineLearnServiceImpl.java

+ 2
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/MachineLearnServiceImpl.java View File

@@ -208,12 +208,13 @@ public class MachineLearnServiceImpl implements MachineLearnService {
} }
case Constant.ML_TextClassification: { case Constant.ML_TextClassification: {
machineLearnIns.setModelPath(outputPath + "saved_dict/" + modelType + ".ckpt"); machineLearnIns.setModelPath(outputPath + "saved_dict/" + modelType + ".ckpt");
machineLearnIns.setRunHistoryPath(output2.get("path").replace("{{workflow.name}}", (String) metadata.get("name")).substring("data/".length()) + "/" + "log/" + modelType);
machineLearnIns.setRunHistoryPath(output2.get("path").replace("{{workflow.name}}", (String) metadata.get("name")).substring("data/".length()) + "/log/" + modelType);
machineLearnIns.setResultPath(outputPath + "log/" + modelType + "/result.txt"); machineLearnIns.setResultPath(outputPath + "log/" + modelType + "/result.txt");
break; break;
} }
case Constant.ML_VideoClassification: { case Constant.ML_VideoClassification: {
machineLearnIns.setResultPath(outputPath); machineLearnIns.setResultPath(outputPath);
machineLearnIns.setRunHistoryPath(output2.get("path").replace("{{workflow.name}}", (String) metadata.get("name")).substring("data/".length()) + "/log");
break; break;
} }
} }


Loading…
Cancel
Save