Skip to content

Commit 3085ffe

Browse files
committed
Replace runpy with uvicorn to start the API server
1 parent c62c435 commit 3085ffe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

run.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import runpy
1+
from src.api.api import app
2+
import uvicorn
23

34
if __name__ == '__main__':
4-
runpy.run_module('src.api.api', run_name='__main__')
5+
uvicorn.run(app, host="0.0.0.0", port=8000)

0 commit comments

Comments
 (0)