Skip to content

Commit

Permalink
add uvicorn back
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 16, 2024
1 parent d7a9552 commit dc68752
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from multiprocessing import parent_process
import logging
from fastapi import FastAPI

from uvicorn import run
import uvicorn
from tooling import check_env_vars


Expand Down Expand Up @@ -42,7 +43,7 @@

# start API

api.run(
uvicorn.run(
app='__main__:api',
host=str(env['LISTENER_HOST']),
port=int(env['LISTENER_PORT']),
Expand Down

0 comments on commit dc68752

Please sign in to comment.