diff --git a/scripts/tag_autocomplete_helper.py b/scripts/tag_autocomplete_helper.py index 1a28bb3..46b9081 100644 --- a/scripts/tag_autocomplete_helper.py +++ b/scripts/tag_autocomplete_helper.py @@ -594,6 +594,8 @@ def api_tac(_: gr.Blocks, app: FastAPI): try: if get: ret = func() + if ret is list: + ret = [{"name": t[0], "type": t[1], "count": t[2]} for t in ret] return JSONResponse({"result": ret}) else: func()