jonathanjordan21 commited on
Commit
6e2cc63
1 Parent(s): 151a30b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ 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_combined_chain(llm=CustomLLM(repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1", model_type='text-generation', api_token=API_TOKEN, stop=["\n<|","<|"], max_new_tokens=6), df_chain=dataframe_chain, memory_chain=memory_chain)
33
 
34
  if 'memory' not in st.session_state:
35
  st.session_state['memory'] = ConversationBufferMemory(return_messages=True)
 
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_combined_chain(llm=CustomLLM(repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1", model_type='text-generation', api_token=API_TOKEN, stop=["\n<|","<|"], max_new_tokens=4), df_chain=dataframe_chain, memory_chain=memory_chain)
33
 
34
  if 'memory' not in st.session_state:
35
  st.session_state['memory'] = ConversationBufferMemory(return_messages=True)