Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -169,13 +169,13 @@ with gr.Blocks(fill_height=True) as demo:
|
|
169 |
["./example_images/baklava.png", "Where is this pastry from?", 0.4, 512, 1.2, 0.8],
|
170 |
["./example_images/dummy_pdf.png", "How much percent is the order status?", 0.4, 512, 1.2, 0.8],
|
171 |
["./example_images/art_critic.png", "As an art critic AI assistant, could you describe this painting in details and make a thorough critic?.", 0.4, 512, 1.2, 0.8]]
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
submit_btn.click(model_inference, inputs = [image_input, query_input, decoding_strategy, temperature,
|
180 |
max_new_tokens, repetition_penalty, top_p],
|
181 |
outputs=output)
|
|
|
169 |
["./example_images/baklava.png", "Where is this pastry from?", 0.4, 512, 1.2, 0.8],
|
170 |
["./example_images/dummy_pdf.png", "How much percent is the order status?", 0.4, 512, 1.2, 0.8],
|
171 |
["./example_images/art_critic.png", "As an art critic AI assistant, could you describe this painting in details and make a thorough critic?.", 0.4, 512, 1.2, 0.8]]
|
172 |
+
gr.Examples(
|
173 |
+
examples = examples,
|
174 |
+
inputs=[image_input, query_input, decoding_strategy, temperature,
|
175 |
+
max_new_tokens, repetition_penalty, top_p],
|
176 |
+
outputs=output,
|
177 |
+
fn=model_inference
|
178 |
+
)
|
179 |
submit_btn.click(model_inference, inputs = [image_input, query_input, decoding_strategy, temperature,
|
180 |
max_new_tokens, repetition_penalty, top_p],
|
181 |
outputs=output)
|