2022-11-29 21:40:20 +01:00
|
|
|
import api
|
2022-12-01 16:06:23 +01:00
|
|
|
import lingua_franca
|
|
|
|
|
2022-12-04 15:27:45 +01:00
|
|
|
from jarvis.skills.cocktails import CocktailSkill
|
|
|
|
from jarvis.skills.intent_services import intent_manager
|
2022-11-29 21:40:20 +01:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2022-12-01 16:06:23 +01:00
|
|
|
|
|
|
|
# Load lingua franca in the memory
|
|
|
|
lingua_franca.load_language(lang="fr")
|
|
|
|
|
2022-12-04 15:27:45 +01:00
|
|
|
# Register each skills
|
|
|
|
CocktailSkill().register()
|
|
|
|
|
|
|
|
# Load the skills
|
|
|
|
intent_manager.load_all_skills()
|
2022-12-01 16:06:23 +01:00
|
|
|
|
|
|
|
# Start the api endpoint
|
2022-11-29 21:40:20 +01:00
|
|
|
api.start_server()
|