add asr and tts with settings

This commit is contained in:
0Xiao0
2024-08-22 15:26:27 +08:00
parent abb5195e55
commit c247d611a0
28 changed files with 626 additions and 82 deletions

View File

@ -4,6 +4,9 @@ from injector import Injector,inject
from src.log.handler import LogHandler
from src.configuration import EnvConf, LogConf, singleton
import argparse
@singleton
class Main():
@ -14,7 +17,7 @@ class Main():
def run(self):
logger = logging.getLogger(__name__)
logger.info("jarvis-models start", extra={"version": "0.0.1"})
uvicorn.run("server:app", host="0.0.0.0", port=8000, log_level="info")
uvicorn.run("server:app", host="0.0.0.0", port=8000, log_level="info",reload = True)
if __name__ == "__main__":
injector = Injector()