Spaces:
Runtime error
Runtime error
Commit
·
5b2341a
1
Parent(s):
16d332d
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"]).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="Search something").launch(share=True)
|