API: Move to ModelManager

This is a shared module  which manages the model container and provides
extra utility functions around it to help slim down the API.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-03-08 23:57:07 -05:00 committed by Brian Dashore
parent 8b46282aef
commit b373b25235
5 changed files with 178 additions and 143 deletions

View file

@ -1,4 +1,5 @@
"""Utility to automatically upgrade and start the API"""
import asyncio
import argparse
import os
import pathlib
@ -66,4 +67,4 @@ if __name__ == "__main__":
# Import entrypoint after installing all requirements
from main import entrypoint
entrypoint(convert_args_to_dict(args, parser))
asyncio.run(entrypoint(convert_args_to_dict(args, parser)))