|
|
@@ -2,8 +2,6 @@ package repo |
|
|
|
|
|
|
|
import ( |
|
|
|
"archive/zip" |
|
|
|
"code.gitea.io/gitea/modules/notification" |
|
|
|
"code.gitea.io/gitea/modules/timeutil" |
|
|
|
"encoding/json" |
|
|
|
"errors" |
|
|
|
"io" |
|
|
@@ -16,6 +14,9 @@ import ( |
|
|
|
"time" |
|
|
|
"unicode/utf8" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/modules/notification" |
|
|
|
"code.gitea.io/gitea/modules/timeutil" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/models" |
|
|
|
"code.gitea.io/gitea/modules/auth" |
|
|
|
"code.gitea.io/gitea/modules/base" |
|
|
@@ -283,7 +284,10 @@ func NotebookShow(ctx *context.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if modelarts.FlavorInfos == nil { |
|
|
|
json.Unmarshal([]byte(setting.FlavorInfos), &modelarts.FlavorInfos) |
|
|
|
} |
|
|
|
ctx.Data["resource_spec"] = modelarts.FlavorInfos.FlavorInfo |
|
|
|
ctx.Data["datasetDownloadLink"] = datasetDownloadLink |
|
|
|
ctx.Data["task"] = task |
|
|
|
ctx.Data["ID"] = ID |
|
|
|