jusancp99 commited on
Commit
f3d6ecc
1 Parent(s): 0e350f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -51,17 +51,12 @@ def query(image, top_k):
51
  return list(zip(images, labels))
52
 
53
 
54
- title = "Fetch similar birds"
55
-
56
  # You can set the type of gr.Image to be PIL, numpy or str (filepath)
57
  # Not sure what the best for this demo is.
58
  gr.Interface(
59
  query,
60
  inputs=[gr.Image(type="pil"), gr.Slider(value=5, minimum=1, maximum=10, step=1)],
61
  outputs=gr.Gallery().style(grid=[3], height="auto"),
62
- # Filenames denote the integer labels. Know here: https://hf.co/datasets/beans
63
- title=title,
64
- description=description,
65
  examples=[["309.jpg", 309], ["81.jpg", 81], ["93.jpg", 93]],
66
  ).launch()
67
 
 
51
  return list(zip(images, labels))
52
 
53
 
 
 
54
  # You can set the type of gr.Image to be PIL, numpy or str (filepath)
55
  # Not sure what the best for this demo is.
56
  gr.Interface(
57
  query,
58
  inputs=[gr.Image(type="pil"), gr.Slider(value=5, minimum=1, maximum=10, step=1)],
59
  outputs=gr.Gallery().style(grid=[3], height="auto"),
 
 
 
60
  examples=[["309.jpg", 309], ["81.jpg", 81], ["93.jpg", 93]],
61
  ).launch()
62