smacademic / project-bdf

project-bdf created by GitHub Classroom
2 stars 0 forks source link

Images are transcribed multiple times during processing #66

Closed afig closed 5 years ago

afig commented 5 years ago

Describe the bug When transcribing an image, the actual transcription can occur up to 4 times. This leads to transcriptions taking up more resources than is necessary.

This is due to the results of the call to transcribeImages() not being stored. Instead, every time that the result is needed, it is called again.

To Reproduce Steps to reproduce the behavior:

  1. Start the bot
  2. Request a transcription
  3. Notice that transcriptions take longer than they should
  4. Observe code for fault.

Expected behavior The bot should only process an image once during a transcription

Screenshots/Logs N/A

Project information Noticed end of M5

Additional context Add any other context about the problem here.