Spaces:
Runtime error
Runtime error
Update appStore/keyword_search.py
Browse files
appStore/keyword_search.py
CHANGED
|
@@ -76,9 +76,13 @@ def app():
|
|
| 76 |
with st.container():
|
| 77 |
question = st.text_input("Please enter your question here, we will look for the answer in the document.",
|
| 78 |
value="Which extreme weather is a particular risk?",)
|
|
|
|
| 79 |
if st.button("Find them."):
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
| 82 |
with st.spinner("๐ Performing semantic search on"):#+file.name+"..."):
|
| 83 |
try:
|
| 84 |
msg = 'Asked ' + question
|
|
|
|
| 76 |
with st.container():
|
| 77 |
question = st.text_input("Please enter your question here, we will look for the answer in the document.",
|
| 78 |
value="Which extreme weather is a particular risk?",)
|
| 79 |
+
|
| 80 |
if st.button("Find them."):
|
| 81 |
+
document = st.session_state['document']
|
| 82 |
+
pipeline = start_haystack(document)
|
| 83 |
+
|
| 84 |
+
if document is not None:
|
| 85 |
+
|
| 86 |
with st.spinner("๐ Performing semantic search on"):#+file.name+"..."):
|
| 87 |
try:
|
| 88 |
msg = 'Asked ' + question
|