mkoot007 commited on
Commit
7518568
·
1 Parent(s): 37f9b04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def extract_text_from_pdf(pdf_file):
15
  text += page.extractText()
16
  return text
17
  except Exception as e:
18
- raise ValueError("Error reading the PDF file: " + str(e)
19
 
20
  # Function to extract text from a DOCX file
21
  def extract_text_from_docx(docx_file):
 
15
  text += page.extractText()
16
  return text
17
  except Exception as e:
18
+ raise ValueError("Error reading the PDF file: " + str(e))
19
 
20
  # Function to extract text from a DOCX file
21
  def extract_text_from_docx(docx_file):