Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ with st.sidebar:
|
|
87 |
|
88 |
# Initialize or reset chat history
|
89 |
if "chat_history" not in st.session_state or reset_history:
|
90 |
-
st.session_state.chat_history = [{"role": "assistant", "content": st.session_state.starter_message}]
|
91 |
|
92 |
def get_response(system_message, chat_history, user_text, max_new_tokens=256, continue_last=False):
|
93 |
"""
|
|
|
87 |
|
88 |
# Initialize or reset chat history
|
89 |
if "chat_history" not in st.session_state or reset_history:
|
90 |
+
st.session_state.chat_history = [] # [{"role": "assistant", "content": st.session_state.starter_message}]
|
91 |
|
92 |
def get_response(system_message, chat_history, user_text, max_new_tokens=256, continue_last=False):
|
93 |
"""
|