onursavas commited on
Commit
24da6e7
·
1 Parent(s): 7bc6ea7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,6 +11,7 @@ table_engine = PPStructure(recovery=True)
11
  # English image
12
  # table_engine = PPStructure(recovery=True, lang='en')
13
 
 
14
 
15
  def find_layout(image):
16
  save_folder = './output'
@@ -31,5 +32,5 @@ def find_layout(image):
31
 
32
  return final_text
33
 
34
- iface = gr.Interface(fn=find_layout, inputs=[gr.Image(type="pil")], outputs="text")
35
  iface.launch()
 
11
  # English image
12
  # table_engine = PPStructure(recovery=True, lang='en')
13
 
14
+ examples = ['0.png']
15
 
16
  def find_layout(image):
17
  save_folder = './output'
 
32
 
33
  return final_text
34
 
35
+ iface = gr.Interface(fn=find_layout, inputs=[gr.Image(type="pil")], outputs="text", examples=examples)
36
  iface.launch()