Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ with gr.Blocks(css=css) as demo:
|
|
61 |
with gr.Column():
|
62 |
input_img = gr.Image(label="Input Document")
|
63 |
question = gr.Text(label="Question")
|
64 |
-
submit_btn = gr.Button(
|
65 |
output = gr.Text(label="Answer")
|
66 |
gr.Examples(
|
67 |
[["docvqa_example.png", "How many items are sold?"]],
|
@@ -79,7 +79,7 @@ with gr.Blocks(css=css) as demo:
|
|
79 |
with gr.Column():
|
80 |
input_img = gr.Image(label="Input Image")
|
81 |
question = gr.Text(label="Question")
|
82 |
-
submit_btn = gr.Button(
|
83 |
output = gr.Text(label="Answer")
|
84 |
gr.Examples(
|
85 |
[["infographics_example.jpeg", "What is this infographic about?"]],
|
@@ -96,7 +96,7 @@ with gr.Blocks(css=css) as demo:
|
|
96 |
with gr.Column():
|
97 |
input_img = gr.Image(label="Input UI Image")
|
98 |
question = gr.Text(label="Question")
|
99 |
-
submit_btn = gr.Button(
|
100 |
output = gr.Text(label="Caption")
|
101 |
submit_btn.click(infer_chart, [input_img, question], [output])
|
102 |
gr.Examples(
|
@@ -113,7 +113,7 @@ with gr.Blocks(css=css) as demo:
|
|
113 |
with gr.Column():
|
114 |
input_img = gr.Image(label="Input Chart")
|
115 |
question = gr.Text(label="Question")
|
116 |
-
submit_btn = gr.Button(
|
117 |
output = gr.Text(label="Caption")
|
118 |
|
119 |
submit_btn.click(infer_chart, [input_img, question], [output])
|
|
|
61 |
with gr.Column():
|
62 |
input_img = gr.Image(label="Input Document")
|
63 |
question = gr.Text(label="Question")
|
64 |
+
submit_btn = gr.Button(value="Submit")
|
65 |
output = gr.Text(label="Answer")
|
66 |
gr.Examples(
|
67 |
[["docvqa_example.png", "How many items are sold?"]],
|
|
|
79 |
with gr.Column():
|
80 |
input_img = gr.Image(label="Input Image")
|
81 |
question = gr.Text(label="Question")
|
82 |
+
submit_btn = gr.Button(value="Submit")
|
83 |
output = gr.Text(label="Answer")
|
84 |
gr.Examples(
|
85 |
[["infographics_example.jpeg", "What is this infographic about?"]],
|
|
|
96 |
with gr.Column():
|
97 |
input_img = gr.Image(label="Input UI Image")
|
98 |
question = gr.Text(label="Question")
|
99 |
+
submit_btn = gr.Button(value="Submit")
|
100 |
output = gr.Text(label="Caption")
|
101 |
submit_btn.click(infer_chart, [input_img, question], [output])
|
102 |
gr.Examples(
|
|
|
113 |
with gr.Column():
|
114 |
input_img = gr.Image(label="Input Chart")
|
115 |
question = gr.Text(label="Question")
|
116 |
+
submit_btn = gr.Button(value="Submit")
|
117 |
output = gr.Text(label="Caption")
|
118 |
|
119 |
submit_btn.click(infer_chart, [input_img, question], [output])
|