Spaces:
Runtime error
Runtime error
algomuffin
commited on
Commit
•
d3da7b3
1
Parent(s):
5b2341a
Update app.py
Browse files
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
|
|
|
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)
|