ydin0771 commited on
Commit
f6d4a75
β€’
1 Parent(s): 2155140

Update interface.py

Browse files
Files changed (1) hide show
  1. interface.py +3 -1
interface.py CHANGED
@@ -1,6 +1,8 @@
1
  import gradio as gr
2
  from demo import predict
3
 
 
 
4
  gr.Interface(fn=predict,
5
  inputs=[gr.Image(label = 'You can select an example to quickly submit'), "text"],
6
  outputs=["text"],
@@ -12,7 +14,7 @@ gr.Interface(fn=predict,
12
  ['PDF_val_60.png','Where is the caption of the table located at?'],
13
  ['PDF_val_158.png','Does title objects exist in this page?']],
14
  title = 'V-Doc : Visual questions answers with Documents',
15
- description = 'Paper: https://arxiv.org/abs/2205.13724').launch()
16
 
17
  if __name__ == '__main__':
18
  io.lanuch()
 
1
  import gradio as gr
2
  from demo import predict
3
 
4
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2205.13724' target='_blank'>Paper</a></p>"
5
+
6
  gr.Interface(fn=predict,
7
  inputs=[gr.Image(label = 'You can select an example to quickly submit'), "text"],
8
  outputs=["text"],
 
14
  ['PDF_val_60.png','Where is the caption of the table located at?'],
15
  ['PDF_val_158.png','Does title objects exist in this page?']],
16
  title = 'V-Doc : Visual questions answers with Documents',
17
+ description = "<p style='text-align: center'><a href='https://arxiv.org/abs/2205.13724' target='_blank'>Paper</a></p>").launch()
18
 
19
  if __name__ == '__main__':
20
  io.lanuch()