tomoya 11 ماه پیش
والد
کامیت
290394124c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      backend/app/app/api/api_v1/endpoints/images.py

+ 1 - 1
backend/app/app/api/api_v1/endpoints/images.py

@@ -156,7 +156,7 @@ def get_image(
             add_sampling_metadata=True,
             api_name="/generate"
     )   
-    background_tasks.add_task(remove_file, result)
+    background_tasks.add_task(remove_file, result[0])
     return FileResponse(result, background=background_tasks)
 
 @router.websocket("/sr")