Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ if prompt := st.chat_input("😉 Ask any question or feel free to use the exampl
|
|
94 |
st.chat_message("user").markdown(prompt)
|
95 |
|
96 |
# Add user message to chat history
|
97 |
-
st.session_state.messages.append({"role": "system", content: f"You are a helpful assistant. Year now is {current_year}"})
|
98 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
99 |
|
100 |
# API Call
|
|
|
94 |
st.chat_message("user").markdown(prompt)
|
95 |
|
96 |
# Add user message to chat history
|
97 |
+
st.session_state.messages.append({"role": "system", "content": f"You are a helpful assistant. Year now is {current_year}"})
|
98 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
99 |
|
100 |
# API Call
|