Spaces:
Sleeping
Sleeping
Zaheer commited on
Commit ·
0aeb1a2
1
Parent(s): 99b0035
Updated the code
Browse filesFiles changed (2)
- app.pyAdded+18
- requirements.txtAdded+3
123456789101112131415161718import gradio as grimport pdfminerfrom 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(label="Upload a PDF file"), gr.outputs.Textbox(label="Extracted text"), title="PDF Text Extractor", description="A simple app that extracts text from PDF files using pdfminer.", theme="huggingface"
)iface.launch()123PyPDF2pdfminerpdfminer.sixapp.pyAdded+18
requirements.txtAdded+3