jonathanjordan21 commited on
Commit
d11a7ca
1 Parent(s): eb5e936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -39,8 +39,26 @@ if 'df' not in st.session_state:
39
 
40
 
41
  if 'unique_values' not in st.session_state:
42
- exec(custom_unique_df_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).invoke({"df_example":format_df(st.session_state.df.head(4))}))
43
- st.session_state.unique_values = response
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
 
46
 
 
39
 
40
 
41
  if 'unique_values' not in st.session_state:
42
+ # exec(custom_unique_df_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).invoke({"df_example":format_df(st.session_state.df.head(4))}))
43
+ # st.session_state.unique_values = response
44
+ df = st.session_state.df
45
+ st.session_state.unique_values = {
46
+ 'request_mode': df['request_mode'].unique().tolist(),
47
+ 'requester': df['requester'].unique().tolist(),
48
+ 'service_category': df['service_category'].unique().tolist(),
49
+ 'child_service_1': df['child_service_1'].unique().tolist(),
50
+ 'child_service_2': df['child_service_2'].unique().tolist(),
51
+ 'child_service_3': df['child_service_3'].unique().tolist(),
52
+ 'child_service_4': df['child_service_4'].unique().tolist(),
53
+ 'request_status': df['request_status'].unique().tolist(),
54
+ 'request_type': df['request_type'].unique().tolist(),
55
+ 'customer_name': df['customer_name'].unique().tolist(),
56
+ 'created_by': df['created_by'].unique().tolist(),
57
+ 'technician': df['technician'].unique().tolist(),
58
+ 'priority': df['priority'].unique().tolist(),
59
+ 'fcr': df['fcr'].unique().tolist(),
60
+ 'response_time': df['response_time'].unique().tolist()
61
+ }
62
 
63
 
64