From 88a232a7063d07cc36fccc2e4235e76d05f84358 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Fri, 30 Jul 2021 21:12:13 +0200 Subject: [PATCH] using new method from language_utils and removed tests --- jarvis/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jarvis/main.py b/jarvis/main.py index db3fbda..8df9118 100644 --- a/jarvis/main.py +++ b/jarvis/main.py @@ -25,7 +25,7 @@ def process_request(): if __name__ == '__main__': # Load lingua franca in the memory # Supported : English French German Hungarian Italian Portuguese Swedish - lingua_franca.load_language(lang=languages_utils.get_language().split("-")[0]) + lingua_franca.load_language(lang=languages_utils.get_language_only_country()) # Tests WikipediaSkill().register() @@ -34,9 +34,7 @@ if __name__ == '__main__': intent_manager.load_all_skills() - intent_manager.recognise("cherche sur wikipédia Elon Musk") # TO CHECK - intent_manager.recognise("c'est qui Elon Musk") # TO CHECK - intent_manager.recognise("cherche Elon Musk sur wikipédia") # TO CHECK + # intent_manager.recognise("cherche Elon Musk sur wikipédia") # TO CHECK # intent_manager.recognise("raconte moi une blague") # WORKING # intent_manager.recognise("joue le morceau crazy crazy nights de KISS sur spotify") # WORKING # intent_manager.recognise("coupe la musique") # WORKING