Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -254,6 +254,11 @@ if st.session_state.get('is_key_valid', False):
|
|
| 254 |
system_instruction = """You are a strict Bank Loan Officer.
|
| 255 |
You MUST execute the loan assessment following strictly these 4 steps and this exact output format.
|
| 256 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
REQUIRED FLOW:
|
| 258 |
Step 1.Retrieve information for customer information
|
| 259 |
Credit Score: [Score] , Account Status: [Status] , Nationality: [Nationality]
|
|
@@ -341,7 +346,8 @@ if st.session_state.get('is_key_valid', False):
|
|
| 341 |
st.stop()
|
| 342 |
|
| 343 |
st.success("### π Final Recommendation")
|
| 344 |
-
st.
|
|
|
|
| 345 |
|
| 346 |
with st.expander("π Detailed Trace"):
|
| 347 |
steps = res.get("intermediate_steps", [])
|
|
|
|
| 254 |
system_instruction = """You are a strict Bank Loan Officer.
|
| 255 |
You MUST execute the loan assessment following strictly these 4 steps and this exact output format.
|
| 256 |
|
| 257 |
+
IMPORTANT FORMATTING RULES:
|
| 258 |
+
1. Use '###' (Heading 3) for all Step titles.
|
| 259 |
+
2. Use '**' (Bold) for all labels.
|
| 260 |
+
3. Do NOT use Heading 1 (#) or Heading 2 (##) to ensure consistent font size.
|
| 261 |
+
|
| 262 |
REQUIRED FLOW:
|
| 263 |
Step 1.Retrieve information for customer information
|
| 264 |
Credit Score: [Score] , Account Status: [Status] , Nationality: [Nationality]
|
|
|
|
| 346 |
st.stop()
|
| 347 |
|
| 348 |
st.success("### π Final Recommendation")
|
| 349 |
+
with st.container(border=True):
|
| 350 |
+
st.markdown(res['output'])
|
| 351 |
|
| 352 |
with st.expander("π Detailed Trace"):
|
| 353 |
steps = res.get("intermediate_steps", [])
|