davertor commited on
Commit
caf2887
·
1 Parent(s): caf85f0

First model version

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -66,14 +66,15 @@ iface = gr.Interface(
66
  article = "You find more information about this demo on my ✨ github repository [davertor](https://github.com/davertor/image-search-engine-for-flickr-photos-gallery)",
67
  fn=find_best_matches,
68
  inputs=[
69
- gr.inputs.Textbox(
70
  lines=1,
71
  label="Write what you are looking for in an image...",
72
  placeholder="Text Here..."),
73
- gr.inputs.Slider(0, 9, step=1)
74
  ],
75
- outputs=gr.outputs.Carousel(gr.outputs.Image(type="pil")),
76
  examples=[
77
- [("persons in the finish line"), 3],
 
78
  ]
79
- ).launch(debug=True)
 
66
  article = "You find more information about this demo on my ✨ github repository [davertor](https://github.com/davertor/image-search-engine-for-flickr-photos-gallery)",
67
  fn=find_best_matches,
68
  inputs=[
69
+ gr.Textbox(
70
  lines=1,
71
  label="Write what you are looking for in an image...",
72
  placeholder="Text Here..."),
73
+ gr.Slider(1, 9, step=1, value=3)
74
  ],
75
+ outputs=gr.Gallery().style(grid=[1], height="auto"),
76
  examples=[
77
+ [("persons in the podium"), 3],
78
+ [("a man with orange t-shirt"), 3],
79
  ]
80
+ ).launch()