Skip to content

Commit a606456

Browse files
committed
🎨 encoding and whitespace updates
1 parent 700217a commit a606456

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vuegen/streamlit_reportview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
def 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

0 commit comments

Comments
 (0)