服務器狀態

This commit is contained in:
2023-05-21 08:08:46 +08:00
parent e946608376
commit 05ae37d6e2
6 changed files with 57 additions and 5 deletions

View File

@@ -54,6 +54,9 @@ func ModelsPost(w http.ResponseWriter, r *http.Request) {
log.Println(err)
return
}
// 直接提交訓練任務
go model.Train()
// 返回創建的模型
w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.Write(utils.ToJSON(model))
})