diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-04-10 00:08:14 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-04-10 00:08:14 +0200 |
commit | 90838792e10cf80689e91a50b32f628e0d308cbf (patch) | |
tree | 8d7f6bf7226db7944199f9c62197e995228c3363 /rag/ui.py | |
parent | 730923f30c0e74fbbcdcf557763c549f554e8bdb (diff) |
Refactor ui
Diffstat (limited to 'rag/ui.py')
-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) |