Devavrat28 commited on
Commit
3f5712b
Β·
verified Β·
1 Parent(s): 32283be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -3
app.py CHANGED
@@ -41,7 +41,9 @@ async def get_investment_strategy_async(age_group, income, expenses, risk_profil
41
  "risk_profile": risk_profile,
42
  "goal": goal,
43
  "timeframe": timeframe,
44
- "country": country
 
 
45
  }
46
  }
47
 
@@ -388,7 +390,7 @@ custom_css = """
388
  }
389
 
390
  .tips-section h4 {
391
- color: #ffffff !important;
392
  font-weight: 700 !important;
393
  margin-bottom: 1rem !important;
394
  }
@@ -513,7 +515,6 @@ with gr.Blocks(
513
  # Financial Information Section
514
  with gr.Group(elem_classes="form-section"):
515
  gr.HTML("<h3>πŸ’° Financial Overview</h3>")
516
-
517
  with gr.Row():
518
  income = gr.Number(
519
  label="πŸ’΅ Monthly Income ($)",
@@ -527,6 +528,19 @@ with gr.Blocks(
527
  minimum=0,
528
  info="Total monthly living expenses and obligations"
529
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
530
 
531
  # Financial health indicator
532
  gr.HTML("""
 
41
  "risk_profile": risk_profile,
42
  "goal": goal,
43
  "timeframe": timeframe,
44
+ "country": country,
45
+ "current_assets": float(current_assets),
46
+ "current_liabilities":float(current_liabilities) # Placeholder, can be extended later
47
  }
48
  }
49
 
 
390
  }
391
 
392
  .tips-section h4 {
393
+ color: #1e3c72 !important;
394
  font-weight: 700 !important;
395
  margin-bottom: 1rem !important;
396
  }
 
515
  # Financial Information Section
516
  with gr.Group(elem_classes="form-section"):
517
  gr.HTML("<h3>πŸ’° Financial Overview</h3>")
 
518
  with gr.Row():
519
  income = gr.Number(
520
  label="πŸ’΅ Monthly Income ($)",
 
528
  minimum=0,
529
  info="Total monthly living expenses and obligations"
530
  )
531
+ with gr.Row():
532
+ current_assets = gr.Number(
533
+ label="🏦 Current Assets ($)",
534
+ value=20000,
535
+ minimum=0,
536
+ info="Cash, investments, savings, etc."
537
+ )
538
+ current_liabilities = gr.Number(
539
+ label="🧾 Current Liabilities ($)",
540
+ value=15000,
541
+ minimum=0,
542
+ info="Debt, loans, credit card balances"
543
+ )
544
 
545
  # Financial health indicator
546
  gr.HTML("""