ifiecas commited on
Commit
42691c2
·
verified ·
1 Parent(s): 651cf86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -23
app.py CHANGED
@@ -33,6 +33,11 @@ st.markdown("""
33
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
34
  }
35
 
 
 
 
 
 
36
  /* Headers */
37
  h1, h2, h3 {
38
  color: var(--primary-purple-dark);
@@ -156,8 +161,8 @@ with tab1:
156
  with col1:
157
  applicant_income = st.number_input("Monthly Income ($)", min_value=0, value=5000)
158
  loan_amount = st.number_input("Loan Amount ($)", min_value=0, value=100000)
159
- credit_history = st.selectbox("Credit History", [1, 0],
160
- format_func=lambda x: "Good (1)" if x == 1 else "Bad (0)")
161
 
162
  with col2:
163
  coapplicant_income = st.number_input("Co-Applicant's Income ($)", min_value=0)
@@ -247,29 +252,29 @@ with tab2:
247
  <div class="section-card">
248
  <h3>About the Loan Approval System</h3>
249
  <p>This AI-powered system uses advanced machine learning algorithms to determine loan approval eligibility.</p>
250
-
251
- <h4>How it works</h4>
252
- <p>The system analyzes various factors including:</p>
253
- <ul>
254
- <li>Personal and financial information</li>
255
- <li>Credit history</li>
256
- <li>Loan amount and term</li>
257
- <li>Income and employment status</li>
258
- </ul>
259
-
260
- <p>All decisions are made automatically using a trained decision tree model that has learned from thousands of previous loan applications.</p>
261
- </div>
262
-
263
- <div class="section-card">
264
- <h3>Features</h3>
265
- <p>Our system provides:</p>
266
- <ul>
267
- <li>Instant loan approval decisions</li>
268
- <li>Transparent evaluation process</li>
269
- <li>Secure data handling</li>
270
- </ul>
271
  </div>
272
  """, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
 
274
  # Footer
275
  st.markdown("""
 
33
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
34
  }
35
 
36
+ /* Font family */
37
+ body, .stMarkdown, p, h1, h2, h3, h4, h5, h6, .stButton, .stSelectbox, .stNumberInput {
38
+ font-family: 'Helvetica', 'Arial', sans-serif !important;
39
+ }
40
+
41
  /* Headers */
42
  h1, h2, h3 {
43
  color: var(--primary-purple-dark);
 
161
  with col1:
162
  applicant_income = st.number_input("Monthly Income ($)", min_value=0, value=5000)
163
  loan_amount = st.number_input("Loan Amount ($)", min_value=0, value=100000)
164
+ credit_history = st.selectbox("Credit History Status", [1, 0],
165
+ format_func=lambda x: "No existing unsettled loans (1)" if x == 1 else "Have unsettled loans (0)")
166
 
167
  with col2:
168
  coapplicant_income = st.number_input("Co-Applicant's Income ($)", min_value=0)
 
252
  <div class="section-card">
253
  <h3>About the Loan Approval System</h3>
254
  <p>This AI-powered system uses advanced machine learning algorithms to determine loan approval eligibility.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  </div>
256
  """, unsafe_allow_html=True)
257
+
258
+ st.markdown("<h4>How it works</h4>", unsafe_allow_html=True)
259
+ st.write("The system analyzes various factors including:")
260
+ st.markdown("""
261
+ - Personal and financial information
262
+ - Credit history status
263
+ - Loan amount and term
264
+ - Income and employment status
265
+ """)
266
+
267
+ st.write("All decisions are made automatically using a trained decision tree model that has learned from thousands of previous loan applications.")
268
+
269
+ st.markdown('<div class="section-card">', unsafe_allow_html=True)
270
+ st.markdown("<h3>Features</h3>", unsafe_allow_html=True)
271
+ st.write("Our system provides:")
272
+ st.markdown("""
273
+ - Instant loan approval decisions
274
+ - Transparent evaluation process
275
+ - Secure data handling
276
+ """)
277
+ st.markdown('</div>', unsafe_allow_html=True)
278
 
279
  # Footer
280
  st.markdown("""