zayeem00 commited on
Commit
2da7004
1 Parent(s): d10af4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -22
app.py CHANGED
@@ -29,28 +29,21 @@ def generate_advice(name, age, income, expenses, savings, debts, investment_pref
29
 
30
  iface = gr.Interface(
31
  fn=generate_advice,
32
- inputs=[
33
- gr.inputs.Textbox(label="Name"),
34
- gr.inputs.Number(label="Age"),
35
- gr.inputs.Number(label="Monthly Income"),
36
- gr.inputs.Number(label="Monthly Expenses"),
37
- gr.inputs.Number(label="Savings"),
38
- gr.inputs.Number(label="Debts"),
39
- gr.inputs.Textbox(label="Investment Preferences"),
40
- gr.inputs.Radio(label="Risk Tolerance", choices=["Low", "Medium", "High"]),
41
- gr.inputs.Number(label="Retirement Age"),
42
- gr.inputs.Number(label="Retirement Savings Goal"),
43
- gr.inputs.Textbox(label="Short-term Goals (comma separated)"),
44
- gr.inputs.Textbox(label="Long-term Goals (comma separated)"),
45
- gr.inputs.Number(label="Dependents"),
46
- gr.inputs.Number(label="Monthly Health Expenses"),
47
- gr.inputs.Number(label="Monthly Education Expenses"),
48
- gr.inputs.Textbox(label="Insurance Policies (comma separated)"),
49
- gr.inputs.Textbox(label="Major Purchases (with estimated costs, comma separated)"),
50
- gr.inputs.Number(label="Emergency Fund"),
51
- gr.inputs.Number(label="Annual Income Growth (%)"),
52
- gr.inputs.Number(label="Annual Expense Growth (%)"),
53
- gr.inputs.Dropdown(label="Currency", choices=["USD", "EUR", "GBP", "JPY", "INR", "AUD", "CAD", "CHF", "CNY", "Other"]),
54
  ],
55
  outputs="text",
56
  title="Smart Finance Planner: Your Personalized Financial Guide",
 
29
 
30
  iface = gr.Interface(
31
  fn=generate_advice,
32
+ inputs=["text", "number", "number", "number", "number", "number", "text",
33
+ gr.Radio(["Low", "Medium", "High"],label="Risk Tolerance"),
34
+ gr.Number(label="Retirement Age"),
35
+ gr.Number(label="Retirement Savings Goal"),
36
+ gr.Textbox(label="Short-term Goals (comma separated)"),
37
+ gr.Textbox(label="Long-term Goals (comma separated)"),
38
+ gr.Number(label="Dependents"),
39
+ gr.Number(label="Monthly Health Expenses"),
40
+ gr.Number(label="Monthly Education Expenses"),
41
+ gr.Textbox(label="Insurance Policies (comma separated)"),
42
+ gr.Textbox(label="Major Purchases (with estimated costs, comma separated)"),
43
+ gr.Number(label="Emergency Fund"),
44
+ gr.Number(label="Annual Income Growth (%)"),
45
+ gr.Number(label="Annual Expense Growth (%)"),
46
+ gr.Dropdown(label="Currency", choices=["USD", "EUR", "GBP", "JPY", "INR", "AUD", "CAD", "CHF", "CNY", "Other"]),
 
 
 
 
 
 
 
47
  ],
48
  outputs="text",
49
  title="Smart Finance Planner: Your Personalized Financial Guide",