Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import pdfminer
|
|
|
3 |
|
4 |
def read_pdf(file):
|
5 |
-
from pdfminer.high_level import extract_text
|
6 |
text = extract_text(file.name)
|
7 |
return text
|
8 |
|
|
|
1 |
import gradio as gr
|
2 |
import pdfminer
|
3 |
+
from pdfminer.high_level import extract_text
|
4 |
|
5 |
def read_pdf(file):
|
|
|
6 |
text = extract_text(file.name)
|
7 |
return text
|
8 |
|