shukdevdatta123 commited on
Commit
2b23280
·
verified ·
1 Parent(s): 810c219

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -50,6 +50,9 @@ def read_docx(file):
50
  text += paragraph.text + '\n'
51
  return text
52
 
 
 
 
53
  # Function to read image files and extract text
54
  def read_image(file):
55
  image = Image.open(file)
 
50
  text += paragraph.text + '\n'
51
  return text
52
 
53
+ # Specify Tesseract path (adjust if necessary)
54
+ pytesseract.pytesseract.tesseract_cmd = '/usr/bin/tesseract'
55
+
56
  # Function to read image files and extract text
57
  def read_image(file):
58
  image = Image.open(file)