Sush commited on
Commit
671358b
·
1 Parent(s): 09d7ce0

updated source file

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -107,6 +107,10 @@ if query := st.chat_input("Ask your banking question here..."):
107
  if "Why this answer?" in response:
108
  explanation = response.split("Why this answer?")[1]
109
 
 
 
 
 
110
  st.markdown("### Why this answer?")
111
  st.markdown(explanation)
112
 
 
107
  if "Why this answer?" in response:
108
  explanation = response.split("Why this answer?")[1]
109
 
110
+ # Remove sources from explanation
111
+ if "Sources:" in explanation:
112
+ explanation = explanation.split("Sources:")[0]
113
+
114
  st.markdown("### Why this answer?")
115
  st.markdown(explanation)
116