dvj4 commited on
Commit
cc501b0
·
1 Parent(s): 55a82af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -39,18 +39,11 @@ def inference(query):
39
  plt.savefig("img.png")
40
  return "img.png"
41
 
42
- examples= ['a family standing next to the ocean on a sandy beach with a surf board',
43
- 'a group of people sitting in an audience with pen and paper',
44
- 'a couple of cows that are in some grass'
45
- ]
46
-
47
  gr.Interface(
48
  fn=inference,
49
  title="Natural language image search with a Dual Encoder",
50
  description = "Implementation of a dual encoder model for retrieving images that match natural language queries (Note: for demo purposes, only 1k images were used as search space)",
51
  inputs="text",
52
- examples=examples,
53
  outputs="image",
54
  cache_examples=False,
55
- article = "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>. Based on the keras example from <a href=\"https://keras.io/examples/nlp/nl_image_search/\">Khalid Salama</a>",
56
- ).launch(debug=True, enable_queue=True)
 
39
  plt.savefig("img.png")
40
  return "img.png"
41
 
 
 
 
 
 
42
  gr.Interface(
43
  fn=inference,
44
  title="Natural language image search with a Dual Encoder",
45
  description = "Implementation of a dual encoder model for retrieving images that match natural language queries (Note: for demo purposes, only 1k images were used as search space)",
46
  inputs="text",
 
47
  outputs="image",
48
  cache_examples=False,
49
+ ).launch(debug=True, enable_queue=True)