|
|
@@ -28,6 +28,7 @@ type CreateModelArtsNotebookForm struct { |
|
|
LabelName string `form:"label_names"` |
|
|
LabelName string `form:"label_names"` |
|
|
PreTrainModelUrl string `form:"pre_train_model_url"` |
|
|
PreTrainModelUrl string `form:"pre_train_model_url"` |
|
|
SpecId int64 `form:"spec_id" binding:"Required"` |
|
|
SpecId int64 `form:"spec_id" binding:"Required"` |
|
|
|
|
|
DatasetName string `form:"dataset_name"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (f *CreateModelArtsNotebookForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |
|
|
func (f *CreateModelArtsNotebookForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |
|
|
|