Skip to content

Commit

Permalink
add option to reset LLM analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Oct 23, 2024
1 parent e8ff6c2 commit 2e04da8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion alphastats/gui/pages/05_LLM.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,19 @@ def llm_config():

st.markdown(f"##### LLM Analysis with {model_name}")

llm_submitted = st.button(
c1, c2, _ = st.columns((0.2, 0.2, 0.6))
llm_submitted = c1.button(
"Run LLM analysis ...", disabled=llm_integration_set_for_model
)

llm_reset = c2.button(
"Reset LLM analysis ...", disabled=not llm_integration_set_for_model
)
if llm_reset:
del st.session_state[StateKeys.LLM_INTEGRATION]
st.rerun()


if st.session_state[StateKeys.LLM_INTEGRATION].get(model_name) is None:
if not llm_submitted:
st.stop()
Expand Down

0 comments on commit 2e04da8

Please sign in to comment.