Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,9 @@ def chart_qa(image, question):
|
|
28 |
image = gr.inputs.Image(type="pil", label="Chart")
|
29 |
question = gr.inputs.Textbox(label="Question")
|
30 |
answer = gr.outputs.Textbox(label="Model Output")
|
31 |
-
examples = [["chart_example.png", "Which country has the second highest death rate?"],
|
32 |
-
|
|
|
33 |
|
34 |
title = "Interactive demo: chart QA"
|
35 |
description = "Gradio Demo for matcha model, fine-tuned on the ChartQA dataset. To use it, simply upload your image and click 'submit', or click one of the examples to load them."
|
|
|
28 |
image = gr.inputs.Image(type="pil", label="Chart")
|
29 |
question = gr.inputs.Textbox(label="Question")
|
30 |
answer = gr.outputs.Textbox(label="Model Output")
|
31 |
+
examples = [["chart_example.png", "Which country has the second highest death rate?"],
|
32 |
+
["chart_example_2.png", "Which year has the smallest gap between B2B and B2C sales?"],]
|
33 |
+
#["chart_example_3.png"], ["chart_example_4.png"]]
|
34 |
|
35 |
title = "Interactive demo: chart QA"
|
36 |
description = "Gradio Demo for matcha model, fine-tuned on the ChartQA dataset. To use it, simply upload your image and click 'submit', or click one of the examples to load them."
|