Spaces:
Runtime error
Runtime error
Fix: indentation error
#3
by
pvanand
- opened
- actions/actions.py +3 -3
actions/actions.py
CHANGED
@@ -77,7 +77,7 @@ class ActionJoinClassify(Action):
|
|
77 |
last_intent = tracker.slots.get("local_chapter", None)
|
78 |
|
79 |
# Check if the last intent was 'local_chapter'
|
80 |
-
|
81 |
dispatcher.utter_message(template="utter_join_chapter")
|
82 |
else:
|
83 |
dispatcher.utter_message(template=utter_apology_Q_prompt)
|
@@ -97,7 +97,7 @@ class ActionEligibilityClassify(Action):
|
|
97 |
last_intent = tracker.slots.get("local_chapter", None)
|
98 |
|
99 |
# Check if the last intent was 'local_chapter'
|
100 |
-
|
101 |
dispatcher.utter_message(template="utter_local_chapter_participation_eligibility")
|
102 |
else:
|
103 |
dispatcher.utter_message(template=utter_apology_Q_prompt)
|
@@ -117,7 +117,7 @@ class ActionCostClassify(Action):
|
|
117 |
last_intent = tracker.slots.get("local_chapter", None)
|
118 |
|
119 |
# Check if the last intent was 'local_chapter'
|
120 |
-
|
121 |
dispatcher.utter_message(template="utter_local_chapter_cost")
|
122 |
else:
|
123 |
dispatcher.utter_message(template=utter_apology_Q_prompt)
|
|
|
77 |
last_intent = tracker.slots.get("local_chapter", None)
|
78 |
|
79 |
# Check if the last intent was 'local_chapter'
|
80 |
+
if last_intent and last_intent.lower() in ['local chapter', 'local chapters']:
|
81 |
dispatcher.utter_message(template="utter_join_chapter")
|
82 |
else:
|
83 |
dispatcher.utter_message(template=utter_apology_Q_prompt)
|
|
|
97 |
last_intent = tracker.slots.get("local_chapter", None)
|
98 |
|
99 |
# Check if the last intent was 'local_chapter'
|
100 |
+
if last_intent and last_intent.lower() in ['local chapter', 'local chapters']:
|
101 |
dispatcher.utter_message(template="utter_local_chapter_participation_eligibility")
|
102 |
else:
|
103 |
dispatcher.utter_message(template=utter_apology_Q_prompt)
|
|
|
117 |
last_intent = tracker.slots.get("local_chapter", None)
|
118 |
|
119 |
# Check if the last intent was 'local_chapter'
|
120 |
+
if last_intent and last_intent.lower() in ['local chapter', 'local chapters']:
|
121 |
dispatcher.utter_message(template="utter_local_chapter_cost")
|
122 |
else:
|
123 |
dispatcher.utter_message(template=utter_apology_Q_prompt)
|