diff options
Diffstat (limited to 'rag')
-rw-r--r-- | rag/ui.py | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -60,11 +60,7 @@ if __name__ == "__main__": (result_column, context_column) = st.columns(2) - if submit: - if not query: - st.stop() - - query = ss.get("query", "") + if submit and query: with st.spinner("Searching for documents..."): documents = retriever.retrieve(query) |