halimbahae commited on
Commit
c9052ff
1 Parent(s): 97ad829

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,8 +10,8 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
10
  def extract_text_from_pdf(file):
11
  reader = PdfReader(file)
12
  text = ""
13
- for page in range(reader.getNumPages()):
14
- text += reader.getPage(page).extract_text()
15
  return text
16
 
17
  def ats_friendly_checker(file):
 
10
  def extract_text_from_pdf(file):
11
  reader = PdfReader(file)
12
  text = ""
13
+ for page in reader.pages:
14
+ text += page.extract_text()
15
  return text
16
 
17
  def ats_friendly_checker(file):