jarvis-server-v2/run.py

32 lines
651 B
Python
Raw Normal View History

2023-06-01 16:01:35 +02:00
import logging
import pathlib
# import lingua_franca
from src import api
from src.database import db_utils
from src.utils import faster_whisper_utils
if __name__ == '__main__':
logging.getLogger().setLevel(logging.INFO)
# Create the database
db_utils.create_database()
# Load lingua franca in the memory
# lingua_franca.load_language(lang="fr")
# Register each skills
# CocktailSkill().register()
# Load the skills
# intent_manager.load_all_skills()
# Load the STT (whisper) model
# whisper_utils.load_model()
faster_whisper_utils.load_model()
# Start the api endpoint
api.start_api()