anmolsahai commited on
Commit
c7ae19d
1 Parent(s): 0311039
__pycache__/langchain_pipeline.cpython-310.pyc CHANGED
Binary files a/__pycache__/langchain_pipeline.cpython-310.pyc and b/__pycache__/langchain_pipeline.cpython-310.pyc differ
 
app.py CHANGED
@@ -38,14 +38,15 @@ if uploaded_file is not None:
38
  diff = ""
39
  with st.spinner('Please wait ...'):
40
  try:
41
- diff = pipeline(
42
- uploaded_file,
43
- model_name,
44
- balance_type,
45
- apsn_transactions,
46
- max_fees_per_day,
47
- min_overdrawn_fee,
48
- min_transaction_overdraft
 
49
  )
50
  except Exception as e:
51
  st.exception(e)
 
38
  diff = ""
39
  with st.spinner('Please wait ...'):
40
  try:
41
+ diff = pipeline(
42
+ uploaded_file,
43
+ model_name,
44
+ balance_type,
45
+ apsn_transactions,
46
+ max_fees_per_day,
47
+ min_overdrawn_fee,
48
+ min_transaction_overdraft
49
+ )
50
  )
51
  except Exception as e:
52
  st.exception(e)
langchain_pipeline.py CHANGED
@@ -1076,19 +1076,19 @@ What is the minimum amount overdrawn to incur a fee?: {min_overdrawn_fee}
1076
  What is the minimum transaction amount to trigger an overdraft?: {min_transaction_overdraft}
1077
 
1078
  Please output in the following format:
1079
- {entire updated disclosure text with changes **bolded**}
1080
  ------
1081
- {reasons for each change listed and cases cited}
1082
  """
1083
- )
1084
- val = prompt.format(
1085
- context=related_docs,
1086
- disclosure=disclosure_text,
1087
- balance_type=balance_type,
1088
- apsn_transactions=apsn_transactions,
1089
- max_fees_per_day=max_fees_per_day,
1090
- min_overdrawn_fee=min_overdrawn_fee,
1091
- min_transaction_overdraft=min_transaction_overdraft,
1092
  )
1093
 
1094
  chat_response = models[model_name].invoke(input=val)
 
1076
  What is the minimum transaction amount to trigger an overdraft?: {min_transaction_overdraft}
1077
 
1078
  Please output in the following format:
1079
+ {updated_disclosure_text}
1080
  ------
1081
+ {reasons_for_changes}
1082
  """
1083
+ val = prompt.format(
1084
+ context=related_docs,
1085
+ disclosure=disclosure_text,
1086
+ balance_type=balance_type,
1087
+ apsn_transactions=apsn_transactions,
1088
+ max_fees_per_day=max_fees_per_day,
1089
+ min_overdrawn_fee=min_overdrawn_fee,
1090
+ min_transaction_overdraft=min_transaction_overdraft,
1091
+ )
1092
  )
1093
 
1094
  chat_response = models[model_name].invoke(input=val)