From 3ba96b74512607a0f1c8ae8273839e33bd1becfc Mon Sep 17 00:00:00 2001 From: An Phan Date: Fri, 15 Nov 2024 13:51:32 -0800 Subject: [PATCH] fix: remove mode='r' in open --- examples/llamarine/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/llamarine/app.py b/examples/llamarine/app.py index 632a6e5d4..1723fb794 100644 --- a/examples/llamarine/app.py +++ b/examples/llamarine/app.py @@ -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)