diff --git a/Code/Modules/DP_module.py b/Code/Modules/DP_module.py index b698106..6bb9d48 100644 --- a/Code/Modules/DP_module.py +++ b/Code/Modules/DP_module.py @@ -80,6 +80,8 @@ class DP(): system_action[("inform", 'Cost')] = {"cost": "100 zł"} elif intent == 'request_information/opening_hours': system_action[("inform", 'Opening_Hours')] = {"hours": "'8:00 - 16:00"} + elif intent == 'request_information/medical_services': + system_action[("inform", 'Medical_services')] = {"services": "Okulista, Internista, Ginekolog"} elif len(constraints) == 0: system_action[("inform", 'NoOffer')] = {'0': '0'} diff --git a/Code/Modules/NLG_module.py b/Code/Modules/NLG_module.py index 778ba8c..3d6c90f 100644 --- a/Code/Modules/NLG_module.py +++ b/Code/Modules/NLG_module.py @@ -51,6 +51,9 @@ class NLG: if (intent == "Doctors_list"): value = act[action]["doctors"] return f"Lista doktorów w naszej placówce: \n{value}" + if (intent == "Medical_services"): + value = act[action]["services"] + return f"Lista usług oferowanych w naszej placówce: \n{value}" if (intent == "Location"): city = act[action]["city"] street = act[action]["street"]