saadawaissheikh commited on
Commit
1553e72
·
verified ·
1 Parent(s): 7ce1fea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,9 +25,10 @@ PDF_PATH = "healthcare_policy.pdf"
25
 
26
  import pytesseract
27
 
28
- # Optional: Force the path to tesseract if needed
29
  pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
30
 
 
31
  class TfidfEmbedding(Embeddings):
32
  def __init__(self):
33
  self.vectorizer = TfidfVectorizer()
 
25
 
26
  import pytesseract
27
 
28
+ # Force path to Tesseract binary (required for Hugging Face Spaces)
29
  pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
30
 
31
+
32
  class TfidfEmbedding(Embeddings):
33
  def __init__(self):
34
  self.vectorizer = TfidfVectorizer()