Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
NoB0 committed Oct 16, 2023
1 parent c406c88 commit 16940b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
12 changes: 3 additions & 9 deletions moviebot/nlg/nlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ def __init__(self, args=None) -> None:

self.slot_not_found = {
Slots.GENRES.value: ["I could not find the genres __replace__."],
Slots.KEYWORDS.value: [
"I couldn't find the keywords __replace__."
],
Slots.KEYWORDS.value: ["I couldn't find the keywords __replace__."],
Slots.DIRECTORS.value: [
"I could not find the the director name __replace__."
],
Expand Down Expand Up @@ -520,9 +518,7 @@ def _clarify_CIN( # noqa: C901
)
else:
response = (
response
+ " named similar to "
+ CIN[Slots.TITLE.value]
response + " named similar to " + CIN[Slots.TITLE.value]
)
if (
CIN[Slots.DIRECTORS.value]
Expand Down Expand Up @@ -580,9 +576,7 @@ def _user_options_continue(self, agent_dact: DialogueAct) -> ButtonOptions:
DialogueAct(UserIntents.RESTART, []): [
"I want to restart for a new movie."
],
DialogueAct(UserIntents.BYE, []): [
"I would like to quit now."
],
DialogueAct(UserIntents.BYE, []): ["I would like to quit now."],
}
return options

Expand Down
3 changes: 1 addition & 2 deletions tests/user_modeling/test_user_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def test_get_utterances_with_slot_preferences(user_model: UserModel) -> None:

assert user_model.get_utterances_with_slot_preferences("actors") == []
assert (
user_model.get_utterances_with_slot_preferences("genre", "comedy")
== []
user_model.get_utterances_with_slot_preferences("genre", "comedy") == []
)
assert user_model.get_utterances_with_slot_preferences(
"genre", "action"
Expand Down

0 comments on commit 16940b2

Please sign in to comment.