msheriff commited on
Commit
400411f
1 Parent(s): 70e3c5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -35,13 +35,15 @@ description = """A demo by M Sheriff for table extraction with the Table Transfo
35
  First, table detection is performed on the input image using https://huggingface.co/microsoft/table-transformer-detection,
36
  after which the detected table is extracted and https://huggingface.co/microsoft/table-transformer-structure-recognition-v1.1-all recognizes the
37
  individual rows, columns and cells. OCR is then performed per cell, row by row."""
38
- examples = [['image.png'], ['mistral_paper.png']]
 
39
 
40
  app = gr.Interface(fn=process_pdf,
41
  inputs=gr.Image(type="pil"),
42
  outputs=[gr.Image(type="pil", label="Detected table"), gr.Dataframe(label="Table as CSV"), gr.JSON(label="Data as JSON")],
43
  title=title,
44
  description=description,
45
- examples=examples)
 
46
  app.queue()
47
  app.launch(debug=True)
 
35
  First, table detection is performed on the input image using https://huggingface.co/microsoft/table-transformer-detection,
36
  after which the detected table is extracted and https://huggingface.co/microsoft/table-transformer-structure-recognition-v1.1-all recognizes the
37
  individual rows, columns and cells. OCR is then performed per cell, row by row."""
38
+
39
+ # examples = [['image.png'], ['mistral_paper.png']]
40
 
41
  app = gr.Interface(fn=process_pdf,
42
  inputs=gr.Image(type="pil"),
43
  outputs=[gr.Image(type="pil", label="Detected table"), gr.Dataframe(label="Table as CSV"), gr.JSON(label="Data as JSON")],
44
  title=title,
45
  description=description,
46
+ # examples=examples
47
+ )
48
  app.queue()
49
  app.launch(debug=True)