Skip to content

Commit

Permalink
Removed finding the last screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
dianzrong committed May 11, 2023
1 parent e6c67fb commit a0ead1f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions puterbot/strategies/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ def get_next_input_event(
ocr_text = self.get_ocr_text(screenshot)
# logger.info(f"ocr_text=\n{ocr_text}")

# find previous screenshot
index = self.screenshots.index(screenshot)
if index != 0:
last_screenshot = self.screenshots[index - 1]
window_similarity = self.get_summary(ascii_text, self.get_ascii_text(last_screenshot),
ocr_text, self.get_ocr_text(last_screenshot))
else:
window_similarity = 0

event_strs = [
f"<{event}>"
for event in self.recording.input_events
Expand Down

0 comments on commit a0ead1f

Please sign in to comment.