mrm8488 commited on
Commit
458c57f
1 Parent(s): b390d84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -25,7 +25,12 @@ def predict(prompt, image_url, max_length):
25
  title = "Midjourney-like Image Captioning with IDEFICS"
26
  description = "Gradio Demo for generating Midjourney like captions (describe functionality) with IDEFICS"
27
 
28
- #examples = [['beatles.jpeg'], ['aurora.jpeg'], ['good_luck.png'], ['pokemons.jpg'], ['donuts.jpg']]
 
 
 
 
 
29
  io = gr.Interface(fn=image_caption,
30
  #inputs=gr.inputs.Image(type='pil'),
31
  inputs=[
 
25
  title = "Midjourney-like Image Captioning with IDEFICS"
26
  description = "Gradio Demo for generating Midjourney like captions (describe functionality) with IDEFICS"
27
 
28
+ examples = [
29
+ ["Describe the following image:", "https://cdn.arstechnica.net/wp-content/uploads/2023/06/zoomout_2-1440x807.jpg", 64],
30
+ ["Describe the following image:", "https://framerusercontent.com/images/inZdRVn7eafZNvaVre2iW1a538.png", 64],
31
+ ["Describe the following image:", "https://hips.hearstapps.com/hmg-prod/images/cute-photos-of-cats-in-grass-1593184777.jpg", 64]
32
+
33
+ ]
34
  io = gr.Interface(fn=image_caption,
35
  #inputs=gr.inputs.Image(type='pil'),
36
  inputs=[