Update app.py
Browse files
app.py
CHANGED
@@ -85,13 +85,7 @@ with gr.Blocks() as demo:
|
|
85 |
submit_btn = gr.Button("Submit")
|
86 |
output = gr.Textbox(label="Output")
|
87 |
|
88 |
-
|
89 |
-
["example_images/rococo.jpg", "What art era is this?", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
90 |
-
["example_images/examples_wat_arun.jpg", "Give me travel tips for the area around this monument.", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
91 |
-
["example_images/examples_invoice.png", "What is the due date and the invoice date?", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
92 |
-
["example_images/s2w_example.png", "What is this UI about?", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
93 |
-
["example_images/examples_weather_events.png", "Where do the severe droughts happen according to this diagram?", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
94 |
-
]
|
95 |
|
96 |
with gr.Accordion(label="Advanced Generation Parameters", open=False):
|
97 |
|
@@ -165,6 +159,13 @@ with gr.Blocks() as demo:
|
|
165 |
inputs=decoding_strategy,
|
166 |
outputs=top_p,
|
167 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
gr.Examples(
|
169 |
examples = examples,
|
170 |
inputs=[image_input, query_input, assistant_prefix, decoding_strategy, temperature,
|
|
|
85 |
submit_btn = gr.Button("Submit")
|
86 |
output = gr.Textbox(label="Output")
|
87 |
|
88 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
with gr.Accordion(label="Advanced Generation Parameters", open=False):
|
91 |
|
|
|
159 |
inputs=decoding_strategy,
|
160 |
outputs=top_p,
|
161 |
)
|
162 |
+
examples=[
|
163 |
+
["example_images/rococo.jpg", "What art era is this?", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
164 |
+
["example_images/examples_wat_arun.jpg", "Give me travel tips for the area around this monument.", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
165 |
+
["example_images/examples_invoice.png", "What is the due date and the invoice date?", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
166 |
+
["example_images/s2w_example.png", "What is this UI about?", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
167 |
+
["example_images/examples_weather_events.png", "Where do the severe droughts happen according to this diagram?", None, "Greedy", 0.4, 512, 1.2, 0.8],
|
168 |
+
]
|
169 |
gr.Examples(
|
170 |
examples = examples,
|
171 |
inputs=[image_input, query_input, assistant_prefix, decoding_strategy, temperature,
|