From ad6471da8cad35ab2552a67833acda990f5c182e Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Mon, 22 May 2023 08:11:28 -0500 Subject: [PATCH] configure the server --- learn_sql_model/cli/api.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/learn_sql_model/cli/api.py b/learn_sql_model/cli/api.py index 5648880..a06b50a 100644 --- a/learn_sql_model/cli/api.py +++ b/learn_sql_model/cli/api.py @@ -26,9 +26,4 @@ def run( help="show the log messages", ), ): - uvicorn.run( - "learn_sql_model.api.app:app", - port=get_config().port, - log_level="info", - reload=True, - ) + uvicorn.run(**get_config().api_server.dict())