Timjo88 commited on
Commit
993e7c9
Β·
1 Parent(s): 688a74c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, params={"Retriever": {"top_k": 10}, "Reader": {"top_k": 5}})
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 royal scripts..."):
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)