Spaces:
Runtime error
Runtime error
Fangyu Liu
commited on
Commit
·
c619767
1
Parent(s):
320995e
Update app.py
Browse files
app.py
CHANGED
|
@@ -169,9 +169,6 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2212.105
|
|
| 169 |
demo = gr.Interface(
|
| 170 |
fn=process_document,
|
| 171 |
inputs=["image", "text"],
|
| 172 |
-
outputs="text",
|
| 173 |
-
title="DePlot+LLM (Multimodal chain-of-thought reasoning on plots)",
|
| 174 |
-
description=description,
|
| 175 |
outputs=[
|
| 176 |
gr.inputs.Textbox(
|
| 177 |
lines=8,
|
|
@@ -182,10 +179,15 @@ demo = gr.Interface(
|
|
| 182 |
label="Output",
|
| 183 |
)
|
| 184 |
],
|
|
|
|
|
|
|
| 185 |
article=article,
|
| 186 |
enable_queue=True,
|
| 187 |
examples=[["deplot_case_study_m1.png", "What is the sum of numbers of Indonesia and Ireland? Remember to think step by step."],
|
| 188 |
-
["
|
|
|
|
|
|
|
|
|
|
| 189 |
cache_examples=False)
|
| 190 |
|
| 191 |
demo.launch()
|
|
|
|
| 169 |
demo = gr.Interface(
|
| 170 |
fn=process_document,
|
| 171 |
inputs=["image", "text"],
|
|
|
|
|
|
|
|
|
|
| 172 |
outputs=[
|
| 173 |
gr.inputs.Textbox(
|
| 174 |
lines=8,
|
|
|
|
| 179 |
label="Output",
|
| 180 |
)
|
| 181 |
],
|
| 182 |
+
title="DePlot+LLM (Multimodal chain-of-thought reasoning on plots)",
|
| 183 |
+
description=description,
|
| 184 |
article=article,
|
| 185 |
enable_queue=True,
|
| 186 |
examples=[["deplot_case_study_m1.png", "What is the sum of numbers of Indonesia and Ireland? Remember to think step by step."],
|
| 187 |
+
["deplot_case_study_m1.png", "Summarise the chart for me please."]
|
| 188 |
+
["deplot_case_study_3.png", "By how much did China's growth rate drop? Think step by step."],
|
| 189 |
+
["deplot_case_study_4.png", "How many papers are submitted in 2020?"],
|
| 190 |
+
["deplot_case_study_x2.png", "Summarise the chart for me please."]]
|
| 191 |
cache_examples=False)
|
| 192 |
|
| 193 |
demo.launch()
|