Update sample prompts for moondream

#1
by vikhyatk - opened
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -260,14 +260,14 @@ with gr.Blocks(theme=Ocean(), css=css_hide_share) as demo:
260
 
261
  gr.Markdown("### Examples")
262
  example_prompts = [
263
- ["examples/example_1.jpg", "Detect all objects in the image and return their locations and labels.", "Detect all objects in the image and return their locations and labels.", "Object Detection"],
264
- ["examples/example_2.JPG", "Detect all the individual candies in the image and return their locations and labels.", "Detect all the individual candies in the image and return their locations and labels.", "Object Detection"],
265
  ["examples/example_1.jpg", "Count the number of red cars in the image.", "Count the number of red cars in the image.", "Object Counting"],
266
  ["examples/example_2.JPG", "Count the number of blue candies in the image.", "Count the number of blue candies in the image.", "Object Counting"],
267
- ["examples/example_1.jpg", "Identify the red cars in this image, detect their key points and return their positions in the form of points.", "Identify the red cars in this image, detect their key points and return their positions in the form of points.", "Visual Grounding + Keypoint Detection"],
268
- ["examples/example_2.JPG", "Identify the blue candies in this image, detect their key points and return their positions in the form of points.", "Identify the blue candies in this image, detect their key points and return their positions in the form of points.", "Visual Grounding + Keypoint Detection"],
269
- ["examples/example_1.jpg", "Detect the red car that is leading in this image and return its location and label.", "Detect the red car that is leading in this image and return its location and label.", "Visual Grounding + Object Detection"],
270
- ["examples/example_2.JPG", "Detect the blue candy located at the top of the group in this image and return its location and label.", "Detect the blue candy located at the top of the group in this image and return its location and label.", "Visual Grounding + Object Detection"],
271
  ]
272
 
273
  gr.Examples(
 
260
 
261
  gr.Markdown("### Examples")
262
  example_prompts = [
263
+ ["examples/example_1.jpg", "Detect all objects in the image and return their locations and labels.", "objects", "Object Detection"],
264
+ ["examples/example_2.JPG", "Detect all the individual candies in the image and return their locations and labels.", "candies", "Object Detection"],
265
  ["examples/example_1.jpg", "Count the number of red cars in the image.", "Count the number of red cars in the image.", "Object Counting"],
266
  ["examples/example_2.JPG", "Count the number of blue candies in the image.", "Count the number of blue candies in the image.", "Object Counting"],
267
+ ["examples/example_1.jpg", "Identify the red cars in this image, detect their key points and return their positions in the form of points.", "red cars", "Visual Grounding + Keypoint Detection"],
268
+ ["examples/example_2.JPG", "Identify the blue candies in this image, detect their key points and return their positions in the form of points.", "blue candies", "Visual Grounding + Keypoint Detection"],
269
+ ["examples/example_1.jpg", "Detect the red car that is leading in this image and return its location and label.", "leading red car", "Visual Grounding + Object Detection"],
270
+ ["examples/example_2.JPG", "Detect the blue candy located at the top of the group in this image and return its location and label.", "blue candy located at the top of the group", "Visual Grounding + Object Detection"],
271
  ]
272
 
273
  gr.Examples(