peter2000 commited on
Commit
fe01337
β€’
1 Parent(s): 0368090

Update appStore/keyword_search.py

Browse files
Files changed (1) hide show
  1. appStore/keyword_search.py +2 -5
appStore/keyword_search.py CHANGED
@@ -77,7 +77,7 @@ def app():
77
  question = st.text_input("Please enter your question here, we will look for the answer in the document.",
78
  value="What particular risks does climate change pose for women?",)
79
  if st.button("Find them."):
80
- pipeline = st.session_state['pipeline
81
  if pipeline is not None:
82
  with st.spinner("πŸ‘‘ Performing semantic search on"):#+file.name+"..."):
83
  try:
@@ -106,7 +106,4 @@ def app():
106
  logging.exception(e)
107
 
108
  else:
109
- st.info("πŸ€” No document found, please try to upload it at the sidebar!"
110
- )
111
-
112
-
 
77
  question = st.text_input("Please enter your question here, we will look for the answer in the document.",
78
  value="What particular risks does climate change pose for women?",)
79
  if st.button("Find them."):
80
+ pipeline = st.session_state['pipeline']
81
  if pipeline is not None:
82
  with st.spinner("πŸ‘‘ Performing semantic search on"):#+file.name+"..."):
83
  try:
 
106
  logging.exception(e)
107
 
108
  else:
109
+ st.info("πŸ€” No document found, please try to upload it at the sidebar!")