ValakiJay1706 commited on
Commit
aa55ae6
·
verified ·
1 Parent(s): c7e2cdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -157,7 +157,7 @@ def display_info():
157
  # page = doc.load_page(page_num)
158
  # text += page.get_text()
159
  # return text
160
- # pytesseract.pytesseract.tesseract_cmd = r'/path/to/tesseract'
161
  def get_pdf_text(pdf_file):
162
  doc = fitz.open(stream=pdf_file.read(), filetype="pdf")
163
  text = ""
 
157
  # page = doc.load_page(page_num)
158
  # text += page.get_text()
159
  # return text
160
+ subprocess.run(["git", "clone", "https://github.com/tesseract-ocr/tesseract.git"])
161
  def get_pdf_text(pdf_file):
162
  doc = fitz.open(stream=pdf_file.read(), filetype="pdf")
163
  text = ""