Soumen commited on
Commit
18124fd
1 Parent(s): 44f2929

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -21,9 +21,10 @@ import os
21
  os.system('sudo apt-get install tesseract-ocr-eng')
22
  os.system('sudo apt-get install tesseract-ocr-ben')
23
  #os.system('sudo apt update')
 
 
 
24
  os.system('pip install -q pytesseract')
25
- os.system('export TESSDATA_PREFIX= /usr/share/tesseract-ocr/4.00/tessdata/ben.traineddata')
26
- os.system('export TESSDATA_PREFIX= /usr/share/tesseract-ocr/4.00/tessdata/eng.traineddata')
27
  import streamlit as st
28
  import os
29
  import torch
 
21
  os.system('sudo apt-get install tesseract-ocr-eng')
22
  os.system('sudo apt-get install tesseract-ocr-ben')
23
  #os.system('sudo apt update')
24
+ os.system('wget https://github.com/tesseract-ocr/tessdata/raw/main/ben.traineddata')
25
+ os.system('gunzip ben.traineddata.gz ')
26
+ os.system('sudo mv -v ben.traineddata /usr/local/share/tessdata/')
27
  os.system('pip install -q pytesseract')
 
 
28
  import streamlit as st
29
  import os
30
  import torch