Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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):
|