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())