Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ Haystack FAQ Semantic Search Pipeline
|
|
46 |
question = st.text_input("", value=st.session_state.question, max_chars=100, on_change=reset_results)
|
47 |
|
48 |
def ask_question(question):
|
49 |
-
prediction = pipeline.run(query=question
|
50 |
results = []
|
51 |
for answer in prediction["answers"]:
|
52 |
answer = answer.to_dict()
|
@@ -70,7 +70,7 @@ def ask_question(question):
|
|
70 |
return results
|
71 |
|
72 |
if question:
|
73 |
-
with st.spinner("π Performing semantic search on
|
74 |
try:
|
75 |
msg = 'Asked ' + question
|
76 |
logging.info(msg)
|
|
|
46 |
question = st.text_input("", value=st.session_state.question, max_chars=100, on_change=reset_results)
|
47 |
|
48 |
def ask_question(question):
|
49 |
+
prediction = pipeline.run(query=question)
|
50 |
results = []
|
51 |
for answer in prediction["answers"]:
|
52 |
answer = answer.to_dict()
|
|
|
70 |
return results
|
71 |
|
72 |
if question:
|
73 |
+
with st.spinner("π Performing semantic search on FAQ Database..."):
|
74 |
try:
|
75 |
msg = 'Asked ' + question
|
76 |
logging.info(msg)
|