diff --git a/routers/images.go b/routers/images.go index 5dd61bf..bb2e2b3 100644 --- a/routers/images.go +++ b/routers/images.go @@ -173,7 +173,7 @@ func ImagesPost(w http.ResponseWriter, r *http.Request) { } // 推理图像 - go model.Inference([]models.Image{}, func(img models.Image) { + go model.Inference(image_list, func(img models.Image) { log.Println("推理完成") images_websocket_manager.NotifyTaskChange(task, img) })