PDtexextr / app.py
cagataydag's picture
Duplicate from sblumenf/PDF-text-extractor
a4eb9b4
raw
history blame contribute delete
254 Bytes
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()