Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
e24948b
1 Parent(s): 82f52a5

seamntic update

Browse files
Files changed (1) hide show
  1. appStore/keyword_search.py +5 -2
appStore/keyword_search.py CHANGED
@@ -81,11 +81,14 @@ def app():
81
  st.markdown("##### Top few lexical search (TFIDF) hits #####")
82
  lexical_search(queryList,paraList)
83
  else:
84
- st.sidebar(show_answer = st.checkbox("Show context"))
85
  paraList = runSemanticPreprocessingPipeline()
86
  logging.info("starting semantic search")
87
  with st.spinner("Performing Similar/Contextual search"):
88
  st.markdown("##### Top few semantic search results #####")
89
- semantic_search(queryList,paraList,show_answers=False)
 
 
 
90
 
91
 
 
81
  st.markdown("##### Top few lexical search (TFIDF) hits #####")
82
  lexical_search(queryList,paraList)
83
  else:
84
+ show_answers = st.sidebar.checkbox("Show context")
85
  paraList = runSemanticPreprocessingPipeline()
86
  logging.info("starting semantic search")
87
  with st.spinner("Performing Similar/Contextual search"):
88
  st.markdown("##### Top few semantic search results #####")
89
+ if show_answers:
90
+ semantic_search(queryList,paraList,show_answers=True)
91
+ else:
92
+ semantic_search(queryList,paraList,show_answers=False)
93
 
94