pragatheeswaran commited on
Commit
02fc7f1
·
verified ·
1 Parent(s): d2aedea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,10 +1,12 @@
1
  import os
2
  print(os.system("apt-get update && apt-get install -y poppler-utils"))
 
 
3
  import tempfile
4
  import streamlit as st
5
  from PIL import Image
6
  import pytesseract
7
- pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
8
  from pdf2image import convert_from_path
9
  import pypdf
10
  from dotenv import load_dotenv
 
1
  import os
2
  print(os.system("apt-get update && apt-get install -y poppler-utils"))
3
+ os.system("apt-get update && apt-get install -y tesseract-ocr")
4
+
5
  import tempfile
6
  import streamlit as st
7
  from PIL import Image
8
  import pytesseract
9
+ # pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
10
  from pdf2image import convert_from_path
11
  import pypdf
12
  from dotenv import load_dotenv