Skip to content
Snippets Groups Projects
Commit d3d9f658 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

parameterize FastAPI app name, to be overridden by external caller if needed

parent d844d30c
No related branches found
No related tags found
No related merge requests found
......@@ -30,12 +30,12 @@ def parse_args():
return parser.parse_args()
def main(args) -> None:
def main(args, app_name='model_server.base.api:app') -> None:
print('CLI args:\n' + str(args))
server_process = Process(
target=uvicorn.run,
args=('model_server.base.api:app',),
args=(app_name,),
kwargs={
'app_dir': '.',
'host': args.host,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment