Update app.py
Browse files43 unmodified lines4445464748495043 unmodified linesgr.Markdown("# Upload a PDF or an image of a table")with gr.Row():file_input = gr.File(label="Upload PDF or Image")page_input = gr.Number(label="Page number for PDF (ignore if uploading an image)", value=1, precision=0)output = gr.Textbox(label="Result")43 unmodified lines444546474849505143 unmodified linesgr.Markdown("# Upload a PDF or an image of a table")with gr.Row():# Specify file types explicitly: PDFs and images (jpg, png)file_input = gr.File(label="Upload PDF or Image", file_types=["pdf", "image"])page_input = gr.Number(label="Page number for PDF (ignore if uploading an image)", value=1, precision=0)output = gr.Textbox(label="Result")
app.py+2-1