Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ document_store.write_documents(docs_to_index)
|
|
59 |
def haysstack(input,retriever=retriever):
|
60 |
pipe = FAQPipeline(retriever=retriever)
|
61 |
prediction = pipe.run(query=input, params={"Retriever": {"top_k": 1}})
|
62 |
-
return prediction['answers']
|
63 |
# Run any question and change top_k to see more or less answers
|
64 |
|
65 |
import gradio as gr
|
|
|
59 |
def haysstack(input,retriever=retriever):
|
60 |
pipe = FAQPipeline(retriever=retriever)
|
61 |
prediction = pipe.run(query=input, params={"Retriever": {"top_k": 1}})
|
62 |
+
return prediction['answers'][0]
|
63 |
# Run any question and change top_k to see more or less answers
|
64 |
|
65 |
import gradio as gr
|