Fix code to comport with newer Transformers library

#41

This fixes the multiple warnings and notices that the current source code gives due to not being updated for newer Transformers versions. I realize that you guys have released a new model that is "HF compatible," but unless/until it's added to Transformers 4.49, this should resolve all issues. Plus, I'd like to test the new model before switching to it. I noticed some errors in OCR when comparing to this original model so...here's to hoping you guys work out the bugs.

Same issue.

Ready to merge
This branch is ready to get merged automatically.
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment