Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
b3f1012e85
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      models/ai_model_manage.go
  2. +1
    -0
      routers/repo/ai_model_convert.go

+ 1
- 0
models/ai_model_manage.go View File

@@ -46,6 +46,7 @@ type AiModelConvert struct {
SrcEngine int `xorm:"NOT NULL DEFAULT 0"`
RepoId int64 `xorm:"INDEX NULL"`
ModelId string `xorm:"NOT NULL"`
ModelName string `xorm:"NOT NULL"`
ModelVersion string `xorm:"NOT NULL"`
ModelPath string `xorm:"NULL"`
DestFormat int `xorm:"NOT NULL DEFAULT 0"`


+ 1
- 0
routers/repo/ai_model_convert.go View File

@@ -65,6 +65,7 @@ func SaveModelConvert(ctx *context.Context) {
Status: "Waiting",
SrcEngine: SrcEngine,
RepoId: ctx.Repo.Repository.ID,
ModelName: task.Name,
ModelId: modelId,
ModelPath: modelPath,
DestFormat: DestFormat,


Loading…
Cancel
Save