praeclarumjj3 commited on
Commit
8d3c0c8
1 Parent(s): 2a2a86d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -280,7 +280,12 @@ def build_demo(embed_mode):
280
 
281
  cur_dir = os.path.dirname(os.path.abspath(__file__))
282
  gr.Examples(examples=[
 
 
283
  [f"{cur_dir}/examples/suits.jpg", f"{cur_dir}/examples/suits_pan.png", f"{cur_dir}/examples/suits_depth.jpeg", "Can you describe the depth order of the objects in this image, from closest to farthest?", "0.5", "0.5"],
 
 
 
284
  ], inputs=[imagebox, segbox, depthbox, textbox, temperature, top_p])
285
 
286
  if not embed_mode:
 
280
 
281
  cur_dir = os.path.dirname(os.path.abspath(__file__))
282
  gr.Examples(examples=[
283
+ [f"{cur_dir}/examples/people.jpg", f"{cur_dir}/examples/people_pan.png", None, "What objects can be seen in the image?", "0.9", "1.0"],
284
+ [f"{cur_dir}/examples/corgi.jpg", f"{cur_dir}/examples/corgi_pan.png", None, "What objects can be seen in the image?", "0.6", "0.7"],
285
  [f"{cur_dir}/examples/suits.jpg", f"{cur_dir}/examples/suits_pan.png", f"{cur_dir}/examples/suits_depth.jpeg", "Can you describe the depth order of the objects in this image, from closest to farthest?", "0.5", "0.5"],
286
+ [f"{cur_dir}/examples/depth.jpg", f"{cur_dir}/examples/depth_pan.png", f"{cur_dir}/examples/depth_depth.jpeg", "Can you describe the depth order of the objects in this image, from closest to farthest?", "0.5", "0.5"],
287
+ [f"{cur_dir}/examples/friends.jpg", f"{cur_dir}/examples/friends_pan.png", None, "What is happening in the image?", "0.8", "0.9"],
288
+ [f"{cur_dir}/examples/suits.jpg", f"{cur_dir}/examples/suits_pan.png", None, "What objects can be seen in the image?", "0.5", "0.5"],
289
  ], inputs=[imagebox, segbox, depthbox, textbox, temperature, top_p])
290
 
291
  if not embed_mode: