Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
dianzrong committed May 1, 2023
1 parent 33ee2d5 commit d4968b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puterbot/strategies/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def get_next_input_event(
last_summarized_ocr = summarize(self.get_ocr_text(last_screenshot), word_count=1,
split=False)
# summarize the last screenshot
summarized_screenshot = set(last_summarized_ascii & last_summarized_ocr)
summarized_last_screenshot = set(last_summarized_ascii & last_summarized_ocr)

# check whether the last screenshot and the current screenshot are the same
common_synonyms = list(summarized_screenshot & summarized_screenshot)
common_synonyms = list(summarized_screenshot & summarized_last_screenshot)

# may want to change the number of required common synonyms
if len(common_synonyms) > 0:
Expand Down

0 comments on commit d4968b6

Please sign in to comment.