the-confused-coder commited on
Commit
eb5a023
1 Parent(s): 6597aa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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['usr_text']} \nAI: {response.content}')
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)