prithivMLmods commited on
Commit
ca19203
Β·
verified Β·
1 Parent(s): 3e7f1e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -364,21 +364,21 @@ with gr.Blocks() as demo:
364
  with gr.Column():
365
  img_text_out = gr.Textbox(label="Generated Text", lines=5)
366
  img_out = gr.Gallery(label="Annotated Images", height=378)
367
-
 
 
 
 
 
 
 
 
 
368
  img_btn.click(
369
  fn=process_images,
370
  inputs=[img_prompt, img_input],
371
  outputs=[img_text_out, img_out]
372
  )
373
- gr.Examples(
374
- examples=[
375
- [["image1.jpg", "image2.jpg", "image3.jpg"], "Point to the common objects."],
376
- [["image1.jpg"], "Describe this image in detail."],
377
- [["image1.jpg", "image2.jpg"], "Compare these two images."],
378
- ],
379
- inputs=[img_input, img_prompt],
380
- label="Image Examples"
381
- )
382
 
383
  with gr.Tab("Video (QA, Pointing & Tracking)"):
384
  gr.Markdown("**Note:** Video processing takes longer as frames are sampled.")
 
364
  with gr.Column():
365
  img_text_out = gr.Textbox(label="Generated Text", lines=5)
366
  img_out = gr.Gallery(label="Annotated Images", height=378)
367
+
368
+ gr.Examples(
369
+ examples=[
370
+ [["example-images/image1.jpg", "example-images/image2.jpg", "example-images/image3.jpg"], "Describe all the images."],
371
+ [["image1.jpg"], "Point to the boys."],
372
+ [["image1.jpg", "image2.jpg"], "Compare these two images."],
373
+ ],
374
+ inputs=[img_input, img_prompt],
375
+ label="Image Examples"
376
+ )
377
  img_btn.click(
378
  fn=process_images,
379
  inputs=[img_prompt, img_input],
380
  outputs=[img_text_out, img_out]
381
  )
 
 
 
 
 
 
 
 
 
382
 
383
  with gr.Tab("Video (QA, Pointing & Tracking)"):
384
  gr.Markdown("**Note:** Video processing takes longer as frames are sampled.")