Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -38,9 +38,9 @@ def predict(image, input_prompt):
|
|
38 |
return sequence
|
39 |
|
40 |
|
41 |
-
image = gr.
|
42 |
-
input_prompt = gr.
|
43 |
-
model_output = gr.
|
44 |
examples = [["chart_example_1.png", "<summarize_chart>"],
|
45 |
["chart_example_2.png", "<extract_data_table>"]]
|
46 |
|
|
|
38 |
return sequence
|
39 |
|
40 |
|
41 |
+
image = gr.components.Image(type="pil", label="Chart Image")
|
42 |
+
input_prompt = gr.components.Textbox(label="Input Prompt")
|
43 |
+
model_output = gr.components.Textbox(label="Model Output")
|
44 |
examples = [["chart_example_1.png", "<summarize_chart>"],
|
45 |
["chart_example_2.png", "<extract_data_table>"]]
|
46 |
|