pelinbalci commited on
Commit
f10656a
·
verified ·
1 Parent(s): 71959d6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,8 +31,8 @@ if file is not None:
31
  image = Image.open(file) # read image with PIL library
32
  st.image(image) #display
33
 
34
- # it will only detect the English and Turkish part of the image as text
35
- reader = easyocr.Reader(['en','ja'], gpu=False)
36
  result = reader.readtext(np.array(image)) # turn image to numpy array
37
 
38
  # Add a placeholder
 
31
  image = Image.open(file) # read image with PIL library
32
  st.image(image) #display
33
 
34
+ # it will only detect the English part of the image as text
35
+ reader = easyocr.Reader(['en'], gpu=False)
36
  result = reader.readtext(np.array(image)) # turn image to numpy array
37
 
38
  # Add a placeholder