abhibisht89 commited on
Commit
69aa6c0
1 Parent(s): bfb4e58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def search(query,top_k=100):
32
 
33
  for idx, hit in enumerate(hits[0:5]):
34
  ans.append(corpus[hit['corpus_id']])
35
- return ans[0],ans[1],ans[2],ans[3],ans[4]
36
 
37
  exp=["Who is steve jobs?","What is coldplay?","What is a turing test?","What is the most interesting thing about our universe?","What are the most beautiful places on earth?"]
38
 
@@ -41,5 +41,5 @@ desc="This is a semantic search engine powered by SentenceTransformers (Nils_Rei
41
  inp=gr.Textbox(lines=1, placeholder=None,label="search you query here")
42
  out=gr.Textbox(type="text",label="search results")
43
 
44
- iface = gr.Interface(fn=search, inputs=inp, outputs=[out,out,out,out,out],examples=exp,article=desc,title="Neural Search Engine")
45
  iface.launch()
 
32
 
33
  for idx, hit in enumerate(hits[0:5]):
34
  ans.append(corpus[hit['corpus_id']])
35
+ return [ans[0],ans[1],ans[2],ans[3],ans[4]]
36
 
37
  exp=["Who is steve jobs?","What is coldplay?","What is a turing test?","What is the most interesting thing about our universe?","What are the most beautiful places on earth?"]
38
 
 
41
  inp=gr.Textbox(lines=1, placeholder=None,label="search you query here")
42
  out=gr.Textbox(type="text",label="search results")
43
 
44
+ iface = gr.Interface(fn=search, inputs=inp, outputs=out,examples=exp,article=desc,title="Neural Search Engine")
45
  iface.launch()