I am getting the same error
Here’s my code:
  

      github.com
  

  
    tulasi-agina/ForeignLangauge/blob/main/OCRtext.py 3


    #!pip install SpeechRecognition
#!pip install easyocr #extract text from images
#!pip install googletrans==3.1.0a0

import streamlit as st
from PIL import Image
import numpy as np
import easyocr
  
image_file = st.file_uploader("Upload image",type=['jpg','png','jpeg','JPG'])
if st.button("Convert"):

	if image_file is not None:
		img = Image.open(image_file)
		img = np.array(img)

		st.subheader('Image you Uploaded...')
		st.image(image_file,width=450)
		with st.spinner('Extracting Text from given image'):
			eng_reader = easyocr.Reader(['en'])



  This file has been truncated. show original

  

  
    
    
  

  



image972×996 130 KB