From d7663577a6295b25f755c6b9b5ce29cdbc8bcf52 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sat, 17 Jun 2023 07:05:24 -0400 Subject: [PATCH] fix api docs --- webui.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/webui.py b/webui.py index 857b26957..093c0fdf4 100644 --- a/webui.py +++ b/webui.py @@ -76,18 +76,14 @@ fastapi_args = { "version": f'0.0.{git_commit}', "title": "SD.Next", "description": "SD.Next", - "license_info": "/LICENSE.txt", + "docs_url": "/docs" if cmd_opts.docs else None, + "redocs_url": "/redocs" if cmd_opts.docs else None, + "swagger_ui_parameters": { + "displayOperationId": True, + "showCommonExtensions": True, + "deepLinking": False, + } } -if cmd_opts.docs: - fastapi_args.update({ - "docs_url": "/docs", - "redocs_url": "/redocs", - "swagger_ui_parameters": { - "displayOperationId": True, - "showCommonExtensions": True, - "deepLinking": False, - } - }) def check_rollback_vae():