jonathanjordan21 commited on
Commit
32f7b36
1 Parent(s): d11a7ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -26,8 +26,9 @@ def get_df():
26
 
27
  @st.cache_resource
28
  def get_llm_chain():
29
- dataframe_chain = custom_dataframe_chain(llm=CustomLLM(repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1", model_type='text-generation', api_token=API_TOKEN, stop=["\n<|","<|"]), df=st.session_state.df, unique_values=st.session_state.unique_values)
30
- memory_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)
 
31
  return custom_unique_df_chain(llm=llm, dataframe_chain=dataframe_chain, memory_chain=memory_chain)
32
 
33
  if 'memory' not in st.session_state:
 
26
 
27
  @st.cache_resource
28
  def get_llm_chain():
29
+ llm = CustomLLM(repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1", model_type='text-generation', api_token=API_TOKEN, stop=["\n<|","<|"])
30
+ dataframe_chain = custom_dataframe_chain(llm=llm, df=st.session_state.df, unique_values=st.session_state.unique_values)
31
+ memory_chain = custom_chain_with_history(llm=llm, memory=st.session_state.memory)
32
  return custom_unique_df_chain(llm=llm, dataframe_chain=dataframe_chain, memory_chain=memory_chain)
33
 
34
  if 'memory' not in st.session_state: