Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ if prompt := st.chat_input("😉 Ask any question or feel free to use the exampl
|
|
| 106 |
st.chat_message("user").markdown(prompt)
|
| 107 |
|
| 108 |
# Add user message to chat history
|
| 109 |
-
st.session_state.messages.append({"role": "
|
| 110 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
| 111 |
|
| 112 |
# API Call
|
|
|
|
| 106 |
st.chat_message("user").markdown(prompt)
|
| 107 |
|
| 108 |
# Add user message to chat history
|
| 109 |
+
st.session_state.messages.append({"role": "assistant", "content": f"You are a helpful assistant. Year now is {current_year}"})
|
| 110 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
| 111 |
|
| 112 |
# API Call
|