Spaces:
Runtime error
Runtime error
Update appStore/keyword_search.py
Browse files
appStore/keyword_search.py
CHANGED
@@ -91,14 +91,11 @@ def app():
|
|
91 |
documents = pre.load_document(temp.name,file_name)
|
92 |
documents_processed = pre.preprocessing(documents)
|
93 |
pipeline = start_haystack(documents_processed )
|
94 |
-
|
95 |
|
96 |
-
|
97 |
with st.spinner("๐ Performing semantic search on"):#+file.name+"..."):
|
98 |
try:
|
99 |
msg = 'Asked ' + question
|
100 |
logging.info(msg)
|
101 |
-
pipeline = st.session_state['pipeline']
|
102 |
results = ask_question(question,pipeline)
|
103 |
st.write('## Top Results')
|
104 |
#st.write(results)
|
|
|
91 |
documents = pre.load_document(temp.name,file_name)
|
92 |
documents_processed = pre.preprocessing(documents)
|
93 |
pipeline = start_haystack(documents_processed )
|
|
|
94 |
|
|
|
95 |
with st.spinner("๐ Performing semantic search on"):#+file.name+"..."):
|
96 |
try:
|
97 |
msg = 'Asked ' + question
|
98 |
logging.info(msg)
|
|
|
99 |
results = ask_question(question,pipeline)
|
100 |
st.write('## Top Results')
|
101 |
#st.write(results)
|