Tesseract stopped working in Streamlit. I did some troubleshooting and found out that it does work when running the app locally, but as soon as I deploy the app, the script in bold, below, no longer works. I saw that other users raised the same issue. It stopped working from March 2024.
pytesseract.pytesseract.tesseract_cmd = ‘C:/Program Files (x86)/Tesseract-OCR/tesseract.exe’
response = requests.get(imagetoread)
img = Image.open(io.BytesIO(response.content))
text_img = pytesseract.image_to_string(img)
Can someone please advise?