Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -251,21 +251,21 @@ with gr.Blocks(fill_height=True, css=".message-wrap.svelte-1lcyrx4>div.svelte-1l
|
|
| 251 |
inputs=decoding_strategy,
|
| 252 |
outputs=top_p,
|
| 253 |
)
|
| 254 |
-
|
| 255 |
-
{"text": "What is this UI about?", "files":["./example_images/s2w_example.png"]},
|
| 256 |
-
{"text": "I want to go somewhere similar to the one in the photo. Give me destinations and travel tips.", "files":["./example_images/travel_tips.jpg"]},
|
| 257 |
-
{"text": "Can you tell me a very short story based on this image?", "files":["./example_images/chicken_on_money.png"]},
|
| 258 |
-
{"text": "Where is this pastry from?", "files":["./example_images/baklava.png"]},
|
| 259 |
-
{"text": "How much percent is the order status?", "files":["./example_images/dummy_pdf.png"]},
|
| 260 |
-
{"text":"As an art critic AI assistant, could you describe this painting in details and make a thorough critic?.", "files":["./example_images/art_critic.jpg"]}
|
| 261 |
-
]
|
| 262 |
description = "Try [IDEFICS2-8B](https://huggingface.co/HuggingFaceM4/idefics2-8b), the instruction fine-tuned IDEFICS2 in this demo. 💬 IDEFICS2 is a state-of-the-art vision language model in various benchmarks. To get started, upload an image and write a text prompt or try one of the examples. You can also play with advanced generation parameters. To learn more about IDEFICS2, read [the blog](https://huggingface.co/blog/idefics2). Note that this model is not as chatty as the upcoming chatty model, and it will give shorter answers."
|
| 263 |
|
| 264 |
|
| 265 |
gr.ChatInterface(
|
| 266 |
fn=model_inference,
|
| 267 |
chatbot=chatbot,
|
| 268 |
-
examples=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
description=description,
|
| 270 |
title="Idefics2 Playground 🐶 ",
|
| 271 |
multimodal=True,
|
|
|
|
| 251 |
inputs=decoding_strategy,
|
| 252 |
outputs=top_p,
|
| 253 |
)
|
| 254 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
description = "Try [IDEFICS2-8B](https://huggingface.co/HuggingFaceM4/idefics2-8b), the instruction fine-tuned IDEFICS2 in this demo. 💬 IDEFICS2 is a state-of-the-art vision language model in various benchmarks. To get started, upload an image and write a text prompt or try one of the examples. You can also play with advanced generation parameters. To learn more about IDEFICS2, read [the blog](https://huggingface.co/blog/idefics2). Note that this model is not as chatty as the upcoming chatty model, and it will give shorter answers."
|
| 256 |
|
| 257 |
|
| 258 |
gr.ChatInterface(
|
| 259 |
fn=model_inference,
|
| 260 |
chatbot=chatbot,
|
| 261 |
+
examples=[{"text": "How many items are sold?", "files":["./example_images/docvqa_example.png"]},
|
| 262 |
+
{"text": "What is this UI about?", "files":["./example_images/s2w_example.png"]},
|
| 263 |
+
{"text": "I want to go somewhere similar to the one in the photo. Give me destinations and travel tips.", "files":["./example_images/travel_tips.jpg"]},
|
| 264 |
+
{"text": "Can you tell me a very short story based on this image?", "files":["./example_images/chicken_on_money.png"]},
|
| 265 |
+
{"text": "Where is this pastry from?", "files":["./example_images/baklava.png"]},
|
| 266 |
+
{"text": "How much percent is the order status?", "files":["./example_images/dummy_pdf.png"]},
|
| 267 |
+
{"text":"As an art critic AI assistant, could you describe this painting in details and make a thorough critic?.", "files":["./example_images/art_critic.jpg"]}
|
| 268 |
+
],
|
| 269 |
description=description,
|
| 270 |
title="Idefics2 Playground 🐶 ",
|
| 271 |
multimodal=True,
|