Skip to content

Commit

Permalink
fix: remove mode='r' in open
Browse files Browse the repository at this point in the history
  • Loading branch information
phanhongan committed Nov 15, 2024
1 parent 45837c8 commit 3ba96b7
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 @@ -67,7 +67,7 @@ def main(use_domain_lm: bool = False):

if 'agent_solutions' not in st.session_state:
if os.path.exists(OUTPUT_FILE_PATH):
with open(file=OUTPUT_FILE_PATH, mode='r', encoding='utf-8') as f:
with open(file=OUTPUT_FILE_PATH, encoding='utf-8') as f:
st.session_state.agent_solutions: defaultdict[str, str] = defaultdict(str, json.loads(f.read()))
else:
st.session_state.agent_solutions: defaultdict[str, str] = defaultdict(str)
Expand Down

0 comments on commit 3ba96b7

Please sign in to comment.