Started working on moving to torch
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
func handleRest(handle *Handle) {
|
||||
DeleteAuthJson(handle, "/models/train/reset", User_Normal, func(c *Context, dat *JustId) *Error {
|
||||
model, err := GetBaseModel(c.Db, dat.Id)
|
||||
if err == ModelNotFoundError {
|
||||
if err == NotFoundError {
|
||||
return c.JsonBadRequest("Model not found")
|
||||
} else if err != nil {
|
||||
return c.E500M("Failed to get model", err)
|
||||
|
||||
Reference in New Issue
Block a user