From 89801bed84651cd4a293c7280d79541e622b934c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=9C=E8=8F=AF?= Date: Thu, 22 Jun 2023 01:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E7=90=86=E5=AE=8C=E6=88=90=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E5=9B=BE=E5=83=8F=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) })