Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
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
|
|
|
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
|