algomuffin commited on
Commit
d3da7b3
1 Parent(s): 5b2341a

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?","brown dog"],article="Search something").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?","brown dog"],article="Neural search engine, you can input a query and it will show the top 5 results",title="Neural Search Engine").launch(share=True)