andito HF staff commited on
Commit
8b2d7f4
1 Parent(s): c8f76e0

add examples

Browse files
Files changed (5) hide show
  1. app.py +5 -3
  2. idefics2_architecture.png +0 -0
  3. image.jpg +0 -0
  4. image1.jpg +0 -0
  5. image2.jpg +0 -0
app.py CHANGED
@@ -78,10 +78,12 @@ with gr.Blocks(css=css) as demo:
78
 
79
  gr.Examples(
80
  examples=[
81
- ["image1.jpg", 'Object Detection'],
82
- ["image2.jpg", 'OCR with Region']
 
 
83
  ],
84
- inputs=[input_img],
85
  outputs=[output_text, output_img],
86
  fn=process_image,
87
  cache_examples=True,
 
78
 
79
  gr.Examples(
80
  examples=[
81
+ ["idefics2_architecture.png", 'How many tokens per image does it use?'],
82
+ ["idefics2_architecture.png", 'How large can the input images be?'],
83
+ ["idefics2_architecture.png", 'Up to which size can the images be?'],
84
+ ["image.jpg", "What's the share of Industry Switchers Gained?"]
85
  ],
86
+ inputs=[input_img, text_input],
87
  outputs=[output_text, output_img],
88
  fn=process_image,
89
  cache_examples=True,
idefics2_architecture.png ADDED
image.jpg ADDED
image1.jpg DELETED
Binary file (39.1 kB)
 
image2.jpg DELETED
Binary file (51.9 kB)