|
|
|
@@ -1522,11 +1522,8 @@ func GrampusNotebookDebug(ctx *context.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
if len(result.JobInfo.Tasks) > 0 { |
|
|
|
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) |
|
|
|
} |
|
|
|
|
|
|
|
ctx.Redirect(result.JobInfo.Tasks[0].Url + "?token=" + result.JobInfo.Tasks[0].Token) |
|
|
|
return |
|
|
|
} |
|
|
|
ctx.NotFound("Can not find the job.", nil) |
|
|
|
|