Skip to content

Commit fc8636d

Browse files
author
Pinyu Su
committed
fix cot_refresh_view error
1 parent 7e7cb07 commit fc8636d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/pages/8_📚_Agent_Cot_Management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ def main():
9595
if current_profile is not None:
9696
if st.session_state.cot_refresh_view or st.session_state["cot_sample_search"][current_profile] is None:
9797
st.session_state["cot_sample_search"][current_profile] = VectorStore.get_all_agent_cot_samples(current_profile)
98-
st.session_state.sql_refresh_view = False
98+
st.session_state.cot_refresh_view = False
9999

100100
tab_view, tab_add, tab_search = st.tabs(['View Samples', 'Add New Sample', 'Sample Search'])
101101
if current_profile is not None:
102102
st.session_state['current_profile'] = current_profile
103103
with tab_view:
104104
if current_profile is not None:
105105
st.write("The display page can show a maximum of 5000 pieces of data")
106-
for sample in VectorStore.get_all_agent_cot_samples(current_profile):
106+
for sample in st.session_state["cot_sample_search"][current_profile]:
107107
# st.write(f"Sample: {sample}")
108108
with st.expander(sample['query']):
109109
st.code(sample['comment'])

0 commit comments

Comments
 (0)