Use set_INIT_AGE.
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from portfolio import np, pretty_num, portfolio, INFLATION_RATE
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
|
|
@@ -19,7 +19,9 @@ def net_worth_calculator(Annual_Spending,Current_Income,Current_Age,Retirement_A
|
|
| 19 |
init_pretax_401k = Current_Pretax_401k
|
| 20 |
init_roth_IRA = Current_Roth_IRA
|
| 21 |
init_pretax_IRA = Current_Pretax_IRA
|
| 22 |
-
|
|
|
|
|
|
|
| 23 |
def career_model(i):
|
| 24 |
|
| 25 |
age = INIT_AGE + i
|
|
|
|
| 1 |
+
from portfolio import np, pretty_num, portfolio, INFLATION_RATE, set_INIT_AGE
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
|
|
|
|
| 19 |
init_pretax_401k = Current_Pretax_401k
|
| 20 |
init_roth_IRA = Current_Roth_IRA
|
| 21 |
init_pretax_IRA = Current_Pretax_IRA
|
| 22 |
+
|
| 23 |
+
set_INIT_AGE(INIT_AGE)
|
| 24 |
+
|
| 25 |
def career_model(i):
|
| 26 |
|
| 27 |
age = INIT_AGE + i
|