Spaces:
Running
Running
fixing small session state bug
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ if st.session_state.get("api_key_configured"):
|
|
61 |
# Get results for query
|
62 |
if run_query and top_k:
|
63 |
reset_results()
|
64 |
-
st.session_state.
|
65 |
with st.spinner("🔎"):
|
66 |
try:
|
67 |
st.session_state.result = query(top_k, pipeline)
|
|
|
61 |
# Get results for query
|
62 |
if run_query and top_k:
|
63 |
reset_results()
|
64 |
+
st.session_state.top_k = top_k
|
65 |
with st.spinner("🔎"):
|
66 |
try:
|
67 |
st.session_state.result = query(top_k, pipeline)
|