|
|
@@ -223,9 +223,8 @@ func Notebook2Create(ctx *context.Context, form auth.CreateModelArtsNotebookForm |
|
|
|
if uuid != "" { |
|
|
|
datasetInfos, _, err = models.GetDatasetInfo(uuid) |
|
|
|
for _, infos := range datasetInfos { |
|
|
|
if infos.Size > int(setting.DebugAttachSize) { |
|
|
|
log.Info("datasize exceed limit, the size of dataset(GB)::", infos.Size) |
|
|
|
log.Error("The DatasetSize exceeds the limit (%d)", int(setting.DebugAttachSize)) |
|
|
|
if infos.Size > int(setting.DebugAttachSize * 1024 * 1024 * 1024) { |
|
|
|
log.Error("The DatasetSize exceeds the limit (%d)", int(setting.DebugAttachSize)) //GB |
|
|
|
notebookNewDataPrepare(ctx) |
|
|
|
ctx.RenderWithErr(ctx.Tr("cloudbrain.error.debug_datasetsize"), tplModelArtsNotebookNew, &form) |
|
|
|
return |
|
|
|