下載圖像
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user