Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Commit
•
32f7b36
1
Parent(s):
d11a7ca
Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,9 @@ def get_df():
|
|
26 |
|
27 |
@st.cache_resource
|
28 |
def get_llm_chain():
|
29 |
-
|
30 |
-
|
|
|
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:
|