merve HF staff commited on
Commit
a8611ac
1 Parent(s): 7062ece

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -78,7 +78,7 @@ def model_inference(
78
  with gr.Blocks(fill_height=True) as demo:
79
  gr.Markdown("## IDEFICS2 Instruction 🐶")
80
  gr.Markdown("Play with fine-tuned [IDEFICS2](https://huggingface.co/HuggingFaceM4/idefics2-8b) in this demo. To get started, upload an image and text or try one of the examples.")
81
- gr.Markdown("**Important note**: This model is not made for chatting, the chatty IDEFICS2 will be released in the upcoming days. **This model is very strong on various tasks, including visual question answering, document retrieval and more.**")
82
  gr.Markdown("Learn more about IDEFICS2 in this [blog post](https://huggingface.co/blog/idefics2).")
83
 
84
 
@@ -90,12 +90,11 @@ with gr.Blocks(fill_height=True) as demo:
90
 
91
  with gr.Accordion(label="Example Inputs and Advanced Generation Parameters"):
92
  examples=[["./example_images/docvqa_example.png", "How many items are sold?", "Greedy", 0.4, 512, 1.2, 0.8],
93
- ["./example_images/s2w_example.png", "What is this UI about?", "Greedy", 0.4, 512, 1.2, 0.8],
94
  ["./example_images/example_images_travel_tips.jpg", "I want to go somewhere similar to the one in the photo. Give me destinations and travel tips.", "Greedy", 0.4, 512, 1.2, 0.8],
95
- ["./example_images/chicken_on_money.png", "Can you tell me a very short story based on this image?", "Greedy", 0.4, 512, 1.2, 0.8],
96
  ["./example_images/baklava.png", "Where is this pastry from?", "Greedy", 0.4, 512, 1.2, 0.8],
97
  ["./example_images/dummy_pdf.png", "How much percent is the order status?", "Greedy", 0.4, 512, 1.2, 0.8],
98
- ["./example_images/art_critic.png", "As an art critic AI assistant, could you describe this painting in details and make a thorough critic?.", "Greedy", 0.4, 512, 1.2, 0.8]]
 
99
 
100
  # Hyper-parameters for generation
101
  max_new_tokens = gr.Slider(
 
78
  with gr.Blocks(fill_height=True) as demo:
79
  gr.Markdown("## IDEFICS2 Instruction 🐶")
80
  gr.Markdown("Play with fine-tuned [IDEFICS2](https://huggingface.co/HuggingFaceM4/idefics2-8b) in this demo. To get started, upload an image and text or try one of the examples.")
81
+ gr.Markdown("**Important note**: This model is not made for chatting, the chatty IDEFICS2 will be released in the upcoming days. **This model is very strong on various tasks, including visual question answering, document retrieval and more, you can see it through the examples.**")
82
  gr.Markdown("Learn more about IDEFICS2 in this [blog post](https://huggingface.co/blog/idefics2).")
83
 
84
 
 
90
 
91
  with gr.Accordion(label="Example Inputs and Advanced Generation Parameters"):
92
  examples=[["./example_images/docvqa_example.png", "How many items are sold?", "Greedy", 0.4, 512, 1.2, 0.8],
 
93
  ["./example_images/example_images_travel_tips.jpg", "I want to go somewhere similar to the one in the photo. Give me destinations and travel tips.", "Greedy", 0.4, 512, 1.2, 0.8],
 
94
  ["./example_images/baklava.png", "Where is this pastry from?", "Greedy", 0.4, 512, 1.2, 0.8],
95
  ["./example_images/dummy_pdf.png", "How much percent is the order status?", "Greedy", 0.4, 512, 1.2, 0.8],
96
+ ["./example_images/art_critic.png", "As an art critic AI assistant, could you describe this painting in details and make a thorough critic?.", "Greedy", 0.4, 512, 1.2, 0.8],
97
+ ["./example_images/s2w_example.png", "What is this UI about?", "Greedy", 0.4, 512, 1.2, 0.8]]
98
 
99
  # Hyper-parameters for generation
100
  max_new_tokens = gr.Slider(