Skip to content

Commit

Permalink
Receptionist - Minor Speech Fix (#250)
Browse files Browse the repository at this point in the history
Co-authored-by: Jared Swift <[email protected]>
  • Loading branch information
haiwei-luo and jws-1 authored Jul 9, 2024
1 parent eaac626 commit d71a261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tasks/receptionist/src/receptionist/states/handle_guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def __init__(self, guest_id: str):
with self:
smach.StateMachine.add(
f"GET_NAME_AND_DRINK_GUEST_{guest_id}",
AskAndListen("What is your name and favourite drink?"),
AskAndListen(
"Please say 'Hi Tiago' when talking to me. What is your name and favourite drink?"
),
transitions={
"succeeded": f"PARSE_NAME_AND_DRINK_GUEST_{guest_id}",
"failed": f"PARSE_NAME_AND_DRINK_GUEST_{guest_id}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _handle_drink(self, sentence_list, last_resort):
return closest_spelt
else:
sentence_list.append(closest_spelt)
return self._infer_second_drink(closest_spelt, last_resort)
return self._infer_second_drink(sentence_list, last_resort)

def _handle_similar_spelt(self, sentence_list, available_words, distance_threshold):
for input_word in sentence_list:
Expand Down

0 comments on commit d71a261

Please sign in to comment.