Skip to content

Commit

Permalink
fix: generate new answer if OVERWRITE is set
Browse files Browse the repository at this point in the history
  • Loading branch information
phanhongan committed Nov 16, 2024
1 parent 0ee62df commit 541caee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/llamarine/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def main(use_domain_lm: bool = False):
with st.spinner(text='_SOLVING..._'):
logger.level('DEBUG')

if not st.session_state.agent_solutions[st.session_state.typed_problem]:
if not st.session_state.agent_solutions[st.session_state.typed_problem] or OVERWRITE:
st.session_state.agent_solutions[st.session_state.typed_problem]: str = \
get_or_create_agent(use_domain_lm).solve(
problem=st.session_state.typed_problem, allow_reject=True)
Expand Down

0 comments on commit 541caee

Please sign in to comment.