Spaces:
Runtime error
Runtime error
File size: 254 Bytes
8b8735d 8ee8372 6bba4b2 8b8735d f18cf35 8b8735d 8ee8372 f18cf35 8ee8372 8b8735d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
import pdfminer
from pdfminer.high_level import extract_text
def read_pdf(file):
text = extract_text(file.name)
return text
iface = gr.Interface(
read_pdf,
gr.inputs.File(),
gr.outputs.Textbox()
)
iface.launch()
|