jonathanjordan21 commited on
Commit
0c56ceb
·
1 Parent(s): 9f0143f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ if 'memory' not in st.session_state:
24
  st.session_state['memory'] = ConversationBufferMemory(return_messages=True)
25
 
26
  if 'chain' not in st.session_state:
27
- st.session_state['chain'] = CustomChainWithHistory(llm=CustomLLM(repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1", model_type='text-generation', api_token=API_TOKEN, stop=["\n<|"]), memory=memory)
28
 
29
  st.title("Chat With Me")
30
  st.subheader("by Jonathan Jordan")
 
24
  st.session_state['memory'] = ConversationBufferMemory(return_messages=True)
25
 
26
  if 'chain' not in st.session_state:
27
+ st.session_state['chain'] = custom_chain_with_history(llm=CustomLLM(repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1", model_type='text-generation', api_token=API_TOKEN, stop=["\n<|"]), memory=st.session_state.memory)
28
 
29
  st.title("Chat With Me")
30
  st.subheader("by Jonathan Jordan")