nielsr HF staff commited on
Commit
857eed2
1 Parent(s): 824a7eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- interface = 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
- enable_queue=True)
137
- interface.launch(debug=True)
 
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)