diff --git a/modules/modelarts/modelarts.go b/modules/modelarts/modelarts.go
index 1b7341a56..fed6f8013 100755
--- a/modules/modelarts/modelarts.go
+++ b/modules/modelarts/modelarts.go
@@ -306,7 +306,7 @@ func GenerateNotebook2(ctx *context.Context, jobName, uuid, description, flavor,
Type: models.TypeCloudBrainTwo,
Uuid: uuid,
ComputeResource: models.NPUResource,
- Image: imageName,
+ Image: imageName,
})
if err != nil {
@@ -594,6 +594,7 @@ func GenerateInferenceJob(ctx *context.Context, req *GenerateInferenceJobReq) (e
EngineName: req.EngineName,
LabelName: req.LabelName,
IsLatestVersion: req.IsLatestVersion,
+ ComputeResource: models.NPUResource,
VersionCount: req.VersionCount,
TotalVersionCount: req.TotalVersionCount,
ModelName: req.ModelName,
diff --git a/public/home/home.js b/public/home/home.js
index 8fb64b611..8f7d6a626 100644
--- a/public/home/home.js
+++ b/public/home/home.js
@@ -125,7 +125,7 @@ socket.onmessage = function (e) {
else if(record.OpType == "2"){
actionName = actionName.replace("{oldRepoName}",record.Content);
html += recordPrefix + actionName;
- html += " " + getRepoLink(record) + ""
+ html += " " + getRepotext(record) + ""
}
else if(record.OpType == "24" || record.OpType == "25" || record.OpType == "26" || record.OpType == "27" || record.OpType == "28" || record.OpType == "29" || record.OpType == "30"){
html += recordPrefix + actionName;
diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go
index b4c17bb3a..3da8afc12 100755
--- a/routers/repo/modelarts.go
+++ b/routers/repo/modelarts.go
@@ -257,13 +257,15 @@ func NotebookShow(ctx *context.Context) {
}
var datasetDownloadLink string
- if task.Uuid != "" && task.UserID == ctx.User.ID {
- attachment, err := models.GetAttachmentByUUID(task.Uuid)
- if err == nil {
- datasetDownloadLink = attachment.S3DownloadURL()
+ if ctx.IsSigned {
+ if task.Uuid != "" && task.UserID == ctx.User.ID {
+ attachment, err := models.GetAttachmentByUUID(task.Uuid)
+ if err == nil {
+ datasetDownloadLink = attachment.S3DownloadURL()
+ }
}
}
-
+
ctx.Data["datasetDownloadLink"] = datasetDownloadLink
ctx.Data["task"] = task
ctx.Data["jobID"] = jobID