Jai12345 commited on
Commit
8ccdc3f
·
1 Parent(s): 1cb51fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,13 +34,13 @@ def search(query, top_k=100):
34
 
35
  for idx, hit in enumerate(hits[0:5]):
36
  ans.append(corpus[hit['corpus_id']])
37
- return ans[0], ans[1], ans[2], ans[3], ans[4]
38
 
39
 
40
  exp = ["Who is steve jobs?", "What is coldplay?", "What is a turing test?",
41
  "What is the most interesting thing about our universe?", "What are the most beautiful places on earth?"]
42
 
43
- desc = "This is a semantic search engine powered by SentenceTransformers (Nils_Reimers) with a retrieval and reranking system on Wikipedia corous. This will return the top 5 results. So Quest on with Transformers."
44
 
45
  inp = gr.inputs.Textbox(lines=1, placeholder=None, default="", label="search you query here")
46
  out = gr.outputs.Textbox(type="auto", label="search results")
 
34
 
35
  for idx, hit in enumerate(hits[0:5]):
36
  ans.append(corpus[hit['corpus_id']])
37
+ return ans[4], ans[3], ans[2], ans[1], ans[0]
38
 
39
 
40
  exp = ["Who is steve jobs?", "What is coldplay?", "What is a turing test?",
41
  "What is the most interesting thing about our universe?", "What are the most beautiful places on earth?"]
42
 
43
+ desc = "This is a semantic search engine with a retrieval and reranking system on Wikipedia corous. This will return the top 5 results. So Quest on with Transformers."
44
 
45
  inp = gr.inputs.Textbox(lines=1, placeholder=None, default="", label="search you query here")
46
  out = gr.outputs.Textbox(type="auto", label="search results")