Spaces:
Runtime error
Runtime error
Commit ·
e67fa18
1
Parent(s): 4a1a085
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from pdfminer.high_level import extract_text
|
|
| 4 |
import pdfminer.six
|
| 5 |
|
| 6 |
def read_pdf(file):
|
| 7 |
-
text = pdfminer.
|
| 8 |
return text
|
| 9 |
|
| 10 |
iface = gr.Interface(
|
|
|
|
| 4 |
import pdfminer.six
|
| 5 |
|
| 6 |
def read_pdf(file):
|
| 7 |
+
text = pdfminer.extract_text(file)
|
| 8 |
return text
|
| 9 |
|
| 10 |
iface = gr.Interface(
|