Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,13 +34,13 @@ def search(query, top_k=100):
|
|
34 |
|
35 |
for idx, hit in enumerate(hits[0:5]):
|
36 |
ans.append(corpus[hit['corpus_id']])
|
37 |
-
return ans[
|
38 |
|
39 |
|
40 |
exp = ["Who is steve jobs?", "What is coldplay?", "What is a turing test?",
|
41 |
"What is the most interesting thing about our universe?", "What are the most beautiful places on earth?"]
|
42 |
|
43 |
-
desc = "This is a semantic search engine
|
44 |
|
45 |
inp = gr.inputs.Textbox(lines=1, placeholder=None, default="", label="search you query here")
|
46 |
out = gr.outputs.Textbox(type="auto", label="search results")
|
|
|
34 |
|
35 |
for idx, hit in enumerate(hits[0:5]):
|
36 |
ans.append(corpus[hit['corpus_id']])
|
37 |
+
return ans[4], ans[3], ans[2], ans[1], ans[0]
|
38 |
|
39 |
|
40 |
exp = ["Who is steve jobs?", "What is coldplay?", "What is a turing test?",
|
41 |
"What is the most interesting thing about our universe?", "What are the most beautiful places on earth?"]
|
42 |
|
43 |
+
desc = "This is a semantic search engine with a retrieval and reranking system on Wikipedia corous. This will return the top 5 results. So Quest on with Transformers."
|
44 |
|
45 |
inp = gr.inputs.Textbox(lines=1, placeholder=None, default="", label="search you query here")
|
46 |
out = gr.outputs.Textbox(type="auto", label="search results")
|