Browse Source

模型管理中,NPU的规格显示问题。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.11.2^2
zouap 3 years ago
parent
commit
1d01f70541
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/repo/attachment.go

+ 2
- 1
routers/repo/attachment.go View File

@@ -552,7 +552,7 @@ func GetSuccessChunks(ctx *context.Context) {
fileName := ctx.Query("file_name")
scene := ctx.Query("scene")
modeluuid := ctx.Query("modeluuid")
log.Info("scene=" + scene)
log.Info("scene=" + scene + " typeCloudBrain=" + fmt.Sprint(typeCloudBrain))
var chunks string

err := checkTypeCloudBrain(typeCloudBrain)
@@ -668,6 +668,7 @@ func GetSuccessChunks(ctx *context.Context) {
dbmodeluuid := attach.Description
modelname := ""
if dbmodeluuid != modeluuid {
log.Info("The file has uploaded.fileChunk.ObjectName=" + fileChunk.ObjectName)
model, err := models.QueryModelById(dbmodeluuid)
if err == nil {
modelname = model.Name


Loading…
Cancel
Save