Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
34 |
-
gr.
|
35 |
-
gr.
|
36 |
-
gr.
|
37 |
-
gr.
|
38 |
-
gr.
|
39 |
-
gr.
|
40 |
-
gr.
|
41 |
-
gr.
|
42 |
-
gr.
|
43 |
-
gr.
|
44 |
-
gr.
|
45 |
-
gr.
|
46 |
-
gr.
|
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",
|