Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def haysstack(input,retriever=retriever):
|
|
61 |
prediction = pipe.run(query=input, params={"Retriever": {"top_k": 1}})
|
62 |
answer = str(prediction['answers'][0])
|
63 |
ans = answer.split(',')[0]
|
64 |
-
return ans[19:]
|
65 |
#prediction['answers'][0]
|
66 |
# Run any question and change top_k to see more or less answers
|
67 |
|
|
|
61 |
prediction = pipe.run(query=input, params={"Retriever": {"top_k": 1}})
|
62 |
answer = str(prediction['answers'][0])
|
63 |
ans = answer.split(',')[0]
|
64 |
+
return '亲,' + ans[19:]
|
65 |
#prediction['answers'][0]
|
66 |
# Run any question and change top_k to see more or less answers
|
67 |
|