Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -282,7 +282,7 @@ def process_pdf(image):
|
|
| 282 |
title = "Demo: table detection & recognition with Table Transformer (TATR)."
|
| 283 |
description = """Demo for table extraction with the Table Transformer. First, table detection is performed on the input image using https://huggingface.co/microsoft/table-transformer-detection,
|
| 284 |
after which the detected table is extracted and https://huggingface.co/microsoft/table-transformer-structure-recognition-v1.1-all is leveraged to recognize the individual rows, columns and cells. OCR is then performed per cell, row by row."""
|
| 285 |
-
examples = [['image.png', 'mistral_paper.png']]
|
| 286 |
|
| 287 |
app = gr.Interface(fn=process_pdf,
|
| 288 |
inputs=gr.Image(type="pil"),
|
|
|
|
| 282 |
title = "Demo: table detection & recognition with Table Transformer (TATR)."
|
| 283 |
description = """Demo for table extraction with the Table Transformer. First, table detection is performed on the input image using https://huggingface.co/microsoft/table-transformer-detection,
|
| 284 |
after which the detected table is extracted and https://huggingface.co/microsoft/table-transformer-structure-recognition-v1.1-all is leveraged to recognize the individual rows, columns and cells. OCR is then performed per cell, row by row."""
|
| 285 |
+
examples = [['image.png'], ['mistral_paper.png']]
|
| 286 |
|
| 287 |
app = gr.Interface(fn=process_pdf,
|
| 288 |
inputs=gr.Image(type="pil"),
|