Spaces:
Runtime error
Runtime error
Update interface.py
Browse filesAdd more description
- interface.py +5 -2
interface.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from demo import predict
|
3 |
|
4 |
-
|
|
|
|
|
5 |
|
6 |
gr.Interface(fn=predict,
|
7 |
inputs=[gr.Image(label = 'You can select an example to quickly submit'), "text"],
|
@@ -14,7 +16,8 @@ gr.Interface(fn=predict,
|
|
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 =
|
|
|
18 |
|
19 |
if __name__ == '__main__':
|
20 |
io.lanuch()
|
|
|
1 |
import gradio as gr
|
2 |
from demo import predict
|
3 |
|
4 |
+
f = open("./descrip.md","r")
|
5 |
+
description= f.read()
|
6 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2205.13724' target='_blank'>Paper Link</a></p>"
|
7 |
|
8 |
gr.Interface(fn=predict,
|
9 |
inputs=[gr.Image(label = 'You can select an example to quickly submit'), "text"],
|
|
|
16 |
['PDF_val_60.png','Where is the caption of the table located at?'],
|
17 |
['PDF_val_158.png','Does title objects exist in this page?']],
|
18 |
title = 'V-Doc : Visual questions answers with Documents',
|
19 |
+
description = description,
|
20 |
+
article = article).launch()
|
21 |
|
22 |
if __name__ == '__main__':
|
23 |
io.lanuch()
|