neerajkalyank commited on
Commit
1f09ba8
1 Parent(s): ee6ec88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -7,6 +7,8 @@ import re
7
  from PIL import Image
8
  import tempfile
9
  import os
 
 
10
 
11
  def extract_data_from_pdf(pdf_file):
12
  # Open the PDF file using the path provided by gr.File
 
7
  from PIL import Image
8
  import tempfile
9
  import os
10
+ import pytesseract
11
+ pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract" # Confirm this path after setup
12
 
13
  def extract_data_from_pdf(pdf_file):
14
  # Open the PDF file using the path provided by gr.File