下載圖像

This commit is contained in:
2023-05-27 16:40:04 +08:00
parent 788f166909
commit 0966a3c83e
7 changed files with 203 additions and 62 deletions

View File

@@ -92,8 +92,10 @@ 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))