File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2525
2626def write_python_file (fpath : str , imports : list [str ], contents : list [str ]) -> None :
2727 """Write a Python file with the given imports and contents."""
28- with open (fpath , "w" , encoding = "utf8 " ) as f :
28+ with open (fpath , "w" , encoding = "utf-8 " ) as f :
2929 # Write imports at the top of the file
3030 f .write ("\n " .join (imports ) + "\n \n " )
3131
@@ -1208,7 +1208,7 @@ def response_generator(msg_content):
12081208 combined = "\\ n".join(msg["content"] for msg in st.session_state.messages
12091209 if msg["role"] == "user")
12101210 messages = [{{"role": "user", "content": combined}}]
1211- with st.spinner('Generating answer...'):
1211+ with st.spinner('Generating answer...'):
12121212 response = generate_query(messages)
12131213 parsed_response = parse_api_response(response)
12141214
You can’t perform that action at this time.
0 commit comments