Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,12 @@ 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", "What is the
|
33 |
["chart_example_3.png", "Which country has the lowest CPA received across all times?"],
|
34 |
["chart_example_4.png", "How much revenue did Furious 7 make?"]]
|
35 |
|
36 |
title = "Interactive demo: Chart QA with MatCha"
|
37 |
-
description = "Gradio Demo for the [
|
38 |
|
39 |
interface = gr.Interface(fn=chart_qa,
|
40 |
inputs=[image, question],
|
@@ -45,4 +45,4 @@ interface = gr.Interface(fn=chart_qa,
|
|
45 |
theme='gradio/soft',
|
46 |
enable_queue=True)
|
47 |
|
48 |
-
interface.launch(
|
|
|
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", "What is the B2B sales in 2017?"],
|
33 |
["chart_example_3.png", "Which country has the lowest CPA received across all times?"],
|
34 |
["chart_example_4.png", "How much revenue did Furious 7 make?"]]
|
35 |
|
36 |
title = "Interactive demo: Chart QA with MatCha"
|
37 |
+
description = "Gradio Demo for the [MatCha](https://arxiv.org/abs/2212.09662) model, fine-tuned on the [ChartQA](https://paperswithcode.com/dataset/chartqa) dataset. To use it, simply upload your image and click 'submit', or click one of the examples to load them."
|
38 |
|
39 |
interface = gr.Interface(fn=chart_qa,
|
40 |
inputs=[image, question],
|
|
|
45 |
theme='gradio/soft',
|
46 |
enable_queue=True)
|
47 |
|
48 |
+
interface.launch()
|