Skip to content

Commit

Permalink
Merge pull request #953 from singnet/data-preset-tab
Browse files Browse the repository at this point in the history
[SPT-767] fix model for fine-tune
  • Loading branch information
TerNik authored Dec 3, 2024
2 parents 4468c7e + e49cb13 commit c4da308
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/ServiceDetails/DataPreset/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,17 @@ const DataPreset = ({ classes }) => {
};

const goToCreateModel = () => {
dispatch(setCurrentModelDetails({ dataset: mainDataset }));
const baseUrl = DatafactoryInstanceS3.getUri();
const link =`${baseUrl}/download?key=${mainDataset.datasetKey}`
const model = {
dataset: {
...mainDataset,
link,
},
modelName: mainDataset.name,
description: mainDataset.name,
}
dispatch(setCurrentModelDetails(model));
navigate(location.pathname.split("tab/")[0] + "tab/" + 3, { state: { isOpenCreatingModel: true } });
};

Expand Down

0 comments on commit c4da308

Please sign in to comment.