Error: 'DynamicCache' object has no attribute 'get_max_length'

#45
by tymasf - opened

did you find a way to resolve it , i got the same error the model used to work fine

did you find a way to resolve it , i got the same error the model used to work fine

the syntax uses old version so just need to update it to new syntax :) see the thread i posted for what syntax to use.

did you find a way to resolve it , i got the same error the model used to work fine

if the above doesn’t work and you can deploy the HF version, i know the HF version of this model works without problem.

did you find a way to resolve it , i got the same error the model used to work fine

Otherwise this Python library is good. Using GPU is recommended https://github.com/JaidedAI/EasyOCR

It's this exact error: https://github.com/huggingface/transformers/issues/36071

I’m not sure which one would work for you but I prefer the HF version of this.

you can try this command to downgrade the transormers version:
pip install transformers==4.47.0

Sign up or log in to comment