Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ def process_pdf():
|
|
| 106 |
|
| 107 |
return cropped_table
|
| 108 |
# return image, df, data
|
| 109 |
-
|
| 110 |
|
| 111 |
title = "Sheriff's Demo: Table Detection & Recognition with Table Transformer (TATR)."
|
| 112 |
description = """A demo by M Sheriff for table extraction with the Table Transformer.
|
|
@@ -118,8 +118,8 @@ after which the detected table is extracted and https://huggingface.co/microsoft
|
|
| 118 |
|
| 119 |
app = gr.Interface(fn=process_pdf,
|
| 120 |
inputs=gr.Image(type="pil"),
|
| 121 |
-
outputs=[gr.Image(type="pil")],
|
| 122 |
-
|
| 123 |
title=title,
|
| 124 |
description=description,
|
| 125 |
# examples=examples
|
|
|
|
| 106 |
|
| 107 |
return cropped_table
|
| 108 |
# return image, df, data
|
| 109 |
+
# return [], [], []
|
| 110 |
|
| 111 |
title = "Sheriff's Demo: Table Detection & Recognition with Table Transformer (TATR)."
|
| 112 |
description = """A demo by M Sheriff for table extraction with the Table Transformer.
|
|
|
|
| 118 |
|
| 119 |
app = gr.Interface(fn=process_pdf,
|
| 120 |
inputs=gr.Image(type="pil"),
|
| 121 |
+
outputs=[gr.Image(type="pil", label="Detected table")],
|
| 122 |
+
# outputs=[gr.Image(type="pil", label="Detected table"), gr.Dataframe(label="Table as CSV"), gr.JSON(label="Data as JSON")],
|
| 123 |
title=title,
|
| 124 |
description=description,
|
| 125 |
# examples=examples
|