Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ if submit_button and st.session_state['usr_text']:
|
|
35 |
response = llm_gemini.invoke(st.session_state['usr_text'])
|
36 |
st.subheader("Answer:")
|
37 |
st.write(response.content)
|
38 |
-
st.session_state.chat_history.append(f'User: {st.session_state[
|
39 |
|
40 |
# for displaying chat history
|
41 |
chat_history_text = "\n\n".join(st.session_state.chat_history)
|
|
|
35 |
response = llm_gemini.invoke(st.session_state['usr_text'])
|
36 |
st.subheader("Answer:")
|
37 |
st.write(response.content)
|
38 |
+
st.session_state.chat_history.append(f'User: {st.session_state["usr_text"]} \nAI: {response.content}')
|
39 |
|
40 |
# for displaying chat history
|
41 |
chat_history_text = "\n\n".join(st.session_state.chat_history)
|