John Graham Reynolds commited on
Commit
8c98bf8
·
1 Parent(s): 31a5031

update chain build

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -88,7 +88,8 @@ def clear_chat_history():
88
  st.button('Clear Chat', on_click=clear_chat_history)
89
 
90
  # build our chain outside the working body so that its only instantiated once - simply pass it the chat history for chat completion
91
- chain = ChainBuilder.build_chain()
 
92
 
93
  def last_role_is_user():
94
  return len(st.session_state["messages"]) > 0 and st.session_state["messages"][-1]["role"] == "user"
 
88
  st.button('Clear Chat', on_click=clear_chat_history)
89
 
90
  # build our chain outside the working body so that its only instantiated once - simply pass it the chat history for chat completion
91
+ chain_builder = ChainBuilder()
92
+ chain = chain_builder.build_chain()
93
 
94
  def last_role_is_user():
95
  return len(st.session_state["messages"]) > 0 and st.session_state["messages"][-1]["role"] == "user"