From 70b84058c1737eac0ee41911b2e3b5e0edb49bc7 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Mon, 26 Aug 2024 23:06:12 -0700 Subject: [PATCH] Add relative file path to the progress report. (#4621) --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index a7902c62..d8a9916b 100644 --- a/server.py +++ b/server.py @@ -586,7 +586,9 @@ class PromptServer(): @routes.post("/internal/models/download") async def download_handler(request): async def report_progress(filename: str, status: DownloadModelStatus): - await self.send_json("download_progress", status.to_dict()) + payload = status.to_dict() + payload['download_path'] = filename + await self.send_json("download_progress", payload) data = await request.json() url = data.get('url')