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:
parent
8b46282aef
commit
b373b25235
5 changed files with 178 additions and 143 deletions
3
start.py
3
start.py
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue