Sasha commited on
Commit
10d0949
·
1 Parent(s): 4e11544

removing output file name

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -29,15 +29,12 @@ def query(image, top_k=1):
29
  logits = results[1][0].tolist()
30
  butterfly = ds.select(inx)["image"][0]
31
  return overlay_png_on_side_by_side_images(
32
- image, butterfly, "cadre.png", "output.png", png_position=(50, 50)
33
  )
34
 
35
 
36
  def overlay_png_on_side_by_side_images(
37
- person_image_path,
38
- insect_image_path,
39
- overlay_image_path,
40
- png_position=(0, 0),
41
  ):
42
  """
43
  Overlays a PNG image onto two side-by-side images, resizing them to fit.
 
29
  logits = results[1][0].tolist()
30
  butterfly = ds.select(inx)["image"][0]
31
  return overlay_png_on_side_by_side_images(
32
+ image, butterfly, "cadre.png", png_position=(0, 0)
33
  )
34
 
35
 
36
  def overlay_png_on_side_by_side_images(
37
+ person_image_path, insect_image_path, png_position
 
 
 
38
  ):
39
  """
40
  Overlays a PNG image onto two side-by-side images, resizing them to fit.