Spaces:
Runtime error
Runtime error
update examples
Browse files- app_dialogue.py +11 -9
app_dialogue.py
CHANGED
@@ -747,22 +747,24 @@ with gr.Blocks(title="IDEFICS", theme=gr.themes.Base()) as demo:
|
|
747 |
)
|
748 |
|
749 |
gr.Examples(examples=[
|
750 |
-
["What are the armed baguettes guarding?", "example_images/baguettes_guarding_paris.png"],
|
751 |
["Can you describe the image?", "example_images/bear_costume.png"],
|
752 |
["What is this object and do you think it is horrifying?", "example_images/can_horror.png"],
|
753 |
["Can you tell me a very short story based on this image?", "example_images/chicken_on_money.png"],
|
754 |
-
["
|
755 |
-
["Can you tell me about this image
|
756 |
-
["Can you write an advertisement
|
757 |
-
["What is
|
758 |
-
["What is happening in this image and is it unusual?", "example_images/ramen.png"],
|
759 |
-
["What I should look most forward to when I visit
|
760 |
-
["<fake_token_around_image><image:https://huggingface.co/
|
761 |
],
|
762 |
inputs=[textbox, imagebox],
|
763 |
outputs=[textbox, imagebox, chatbot],
|
764 |
fn=process_example,
|
765 |
-
cache_examples=True,
|
|
|
|
|
766 |
)
|
767 |
|
768 |
demo.queue()
|
|
|
747 |
)
|
748 |
|
749 |
gr.Examples(examples=[
|
750 |
+
["What are the armed baguettes guarding?", "./example_images/baguettes_guarding_paris.png"],
|
751 |
["Can you describe the image?", "example_images/bear_costume.png"],
|
752 |
["What is this object and do you think it is horrifying?", "example_images/can_horror.png"],
|
753 |
["Can you tell me a very short story based on this image?", "example_images/chicken_on_money.png"],
|
754 |
+
["Can you describe this image in details please?", "example_images/dragons_playing.png"],
|
755 |
+
["Can you tell me what is unique about this image?", "example_images/ironman_cap.png"],
|
756 |
+
["Can you write an advertisement for Coca-Cola based on this image?", "example_images/polar_bear_coke.png"],
|
757 |
+
["What is the rabbit doing in this image? Do you think this image is real?", "example_images/rabbit_force.png"],
|
758 |
+
["What is happening in this image and why is it unusual?", "example_images/ramen.png"],
|
759 |
+
["What I should look most forward to when I visit this place?", "example_images/tree_fortress.jpg"],
|
760 |
+
["<fake_token_around_image><image:https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/stable-diffusion-xl-coreml/a_high_quality_photo_of_a_surfing_dog.7667.final_float16_original.jpg><fake_token_around_image>What do you think the dog is doing and is it unusual?", None],
|
761 |
],
|
762 |
inputs=[textbox, imagebox],
|
763 |
outputs=[textbox, imagebox, chatbot],
|
764 |
fn=process_example,
|
765 |
+
cache_examples=True,
|
766 |
+
examples_per_page=5,
|
767 |
+
label="Click on any example below to get started",
|
768 |
)
|
769 |
|
770 |
demo.queue()
|