This commit is contained in:
Waylon Walker 2023-05-19 20:37:42 -05:00
parent c238b9d757
commit fcc0698aeb
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
12 changed files with 95 additions and 97 deletions

View file

@ -2,7 +2,7 @@ import typer
import uvicorn
from learn_sql_model.cli.common import verbose_callback
from learn_sql_model.config import config
from learn_sql_model.config import get_config
api_app = typer.Typer()
@ -26,4 +26,4 @@ def run(
help="show the log messages",
),
):
uvicorn.run("learn_sql_model.api.app:app", port=config.port, log_level="info")
uvicorn.run("learn_sql_model.api.app:app", port=get_config().port, log_level="info")