Browse Source

fix issue

tags/v1.22.12.1^2
zhoupzh 3 years ago
parent
commit
83f42514bc
2 changed files with 3 additions and 2 deletions
  1. +3
    -0
      routers/repo/grampus.go
  2. +0
    -2
      templates/repo/grampus/notebook/show.tmpl

+ 3
- 0
routers/repo/grampus.go View File

@@ -1168,6 +1168,9 @@ func GrampusNotebookShow(ctx *context.Context) {
ctx.Data["modelDownload"] = getModelDownloadInfo(ctx, task)
ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task)
ctx.Data["ai_center"] = cloudbrainService.GetAiCenterShow(task.AiCenter, ctx)
ctx.Data["code_path"] = cloudbrain.CodeMountPath
ctx.Data["dataset_path"] = cloudbrain.DataSetMountPath
ctx.Data["model_path"] = cloudbrain.ModelMountPath
ctx.HTML(http.StatusOK, tplGrampusNotebookShow)
}



+ 0
- 2
templates/repo/grampus/notebook/show.tmpl View File

@@ -441,8 +441,6 @@
{{template "base/footer" .}}
<script src="{{StaticUrlPrefix}}/js/specsuse.js?v={{MD5 AppVer}}" type="text/javascript"></script>
<script>
console.log({{$.modelDownload}} {{$.modelDownload.Name}})
console.log({{.task}});
;(function() {
var SPEC = {{ .Spec }};
var showPoint = false;


Loading…
Cancel
Save