Spaces:
Sleeping
Sleeping
anmolsahai
commited on
Commit
•
c7ae19d
1
Parent(s):
0311039
bug fix2
Browse files- __pycache__/langchain_pipeline.cpython-310.pyc +0 -0
- app.py +9 -8
- langchain_pipeline.py +11 -11
__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 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
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 |
-
{
|
1080 |
------
|
1081 |
-
{
|
1082 |
"""
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
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)
|