Browse Source

Merge branch 'grampus-notebook' of openi.pcl.ac.cn:OpenI/aiforge into grampus-notebook

tags/v1.22.12.1^2
zhoupzh 3 years ago
parent
commit
5c5d2b672b
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      routers/repo/grampus.go

+ 5
- 1
routers/repo/grampus.go View File

@@ -1522,7 +1522,11 @@ func GrampusNotebookDebug(ctx *context.Context) {
return
}
if len(result.JobInfo.Tasks) > 0 {
ctx.Redirect(result.JobInfo.Tasks[0].Url + "?token=" + result.JobInfo.Tasks[0].Token)
if ctx.Cloudbrain.ComputeResource == models.NPUResource {
ctx.Redirect(result.JobInfo.Tasks[0].Url + "?token=" + result.JobInfo.Tasks[0].Token)
} else {
ctx.Redirect("http://192.168.203.154/" + result.JobInfo.Tasks[0].Url + "?token=" + result.JobInfo.Tasks[0].Token)
}
return
}
ctx.NotFound("Can not find the job.", nil)


Loading…
Cancel
Save