algomuffin commited on
Commit
395a684
1 Parent(s): e0e8a2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,4 +28,4 @@ def search(query,top_k=100):
28
  for idx, hit in enumerate(hits[0:5]):
29
  ans.append(corpus[hit['corpus_id']])
30
  return ans[0],ans[1],ans[2],ans[3],ans[4]
31
- iface = gr.Interface(fn=search, inputs=["text"], outputs=["textbox","textbox","textbox","textbox","textbox"],examples=["How big is London?", "Where is Rome?","Who is steve jobs?","What is the most interesting thing about our universe?"],article="This is a semantic search engine powered by SentenceTransformers (Nils_Reimers) with a retrieval and reranking system on Wikipedia corpus. It will show the top 5 results",title="Neural Search Engine").launch(share=True)
 
28
  for idx, hit in enumerate(hits[0:5]):
29
  ans.append(corpus[hit['corpus_id']])
30
  return ans[0],ans[1],ans[2],ans[3],ans[4]
31
+ iface = gr.Interface(fn=search, inputs=["text"], outputs=["textbox","textbox","textbox","textbox","textbox"],examples=["How big is London?", "Where is Rome?","Who is steve jobs?","What is the most interesting thing about our universe?"],article="This is a semantic search engine powered by SentenceTransformers (Nils_Reimers) with a retrieval and reranking system on Wikipedia corpus. It will show the top 5 results",title="Neural Search Engine").launch()