Update app.py
Browse files
app.py
CHANGED
|
@@ -127,11 +127,11 @@ title = "Demo: table detection with Table Transformer"
|
|
| 127 |
description = "Demo for the Table Transformer (TATR)."
|
| 128 |
examples =[['image.png']]
|
| 129 |
|
| 130 |
-
|
| 131 |
inputs=gr.Image(type="pil"),
|
| 132 |
outputs=gr.Image(type="pil", label="Detected table"),
|
| 133 |
title=title,
|
| 134 |
description=description,
|
| 135 |
-
examples=examples
|
| 136 |
-
|
| 137 |
-
|
|
|
|
| 127 |
description = "Demo for the Table Transformer (TATR)."
|
| 128 |
examples =[['image.png']]
|
| 129 |
|
| 130 |
+
app = gr.Interface(fn=detect_table,
|
| 131 |
inputs=gr.Image(type="pil"),
|
| 132 |
outputs=gr.Image(type="pil", label="Detected table"),
|
| 133 |
title=title,
|
| 134 |
description=description,
|
| 135 |
+
examples=examples)
|
| 136 |
+
app.queue()
|
| 137 |
+
app.launch(debug=True)
|