Spaces:
Runtime error
Runtime error
Update appStore/keyword_search.py
Browse files
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!")
|
|
|
|
|
|