Update app.py
Browse files
app.py
CHANGED
@@ -279,9 +279,12 @@ def process_pdf(image):
|
|
279 |
return image, df, data
|
280 |
|
281 |
|
282 |
-
title = "Demo
|
283 |
-
description = """Demo for table extraction with the Table Transformer.
|
284 |
-
|
|
|
|
|
|
|
285 |
examples = [['image.png'], ['mistral_paper.png']]
|
286 |
|
287 |
app = gr.Interface(fn=process_pdf,
|
@@ -291,4 +294,4 @@ app = gr.Interface(fn=process_pdf,
|
|
291 |
description=description,
|
292 |
examples=examples)
|
293 |
app.queue()
|
294 |
-
app.launch(debug=True)
|
|
|
279 |
return image, df, data
|
280 |
|
281 |
|
282 |
+
title = "Sheriff's Demo on Table Detection & Recognition with MS TATR"
|
283 |
+
description = """<h2>Sherif's Demo for table extraction with the Table Transformer.
|
284 |
+
<li>First, table detection is performed on the input image using https://huggingface.co/microsoft/table-transformer-detection,
|
285 |
+
<li>after which the detected table is extracted and
|
286 |
+
https://huggingface.co/microsoft/table-transformer-structure-recognition-v1.1-all recognizes the individual rows, columns and cells.
|
287 |
+
<li>OCR is then performed per cell, row by row."""
|
288 |
examples = [['image.png'], ['mistral_paper.png']]
|
289 |
|
290 |
app = gr.Interface(fn=process_pdf,
|
|
|
294 |
description=description,
|
295 |
examples=examples)
|
296 |
app.queue()
|
297 |
+
app.launch(debug=True, share=True)
|