Spaces:
Running
Running
Upload 16 files
Browse files- app.py +18 -3
- interface/retirement_planning_interface.py +1 -10
app.py
CHANGED
@@ -48,7 +48,21 @@ def initial_load(*args):
|
|
48 |
|
49 |
return (rebalancing_results, share_price_trend_results, dollar_cost_averaging_results, retirement_results)
|
50 |
|
51 |
-
MARKDOWN = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
# TuneIt 🔥 Investment Toolkit
|
53 |
|
54 |
Welcome to the **TuneIt Investment Toolkit**! This all-in-one platform is designed to help you optimize your financial strategies, whether you're balancing your portfolio, analyzing market trends, planning for retirement, or maximizing dividends.
|
@@ -112,12 +126,13 @@ def create_tab(tab_name, inputs, outputs, update_fn, examples, component_rows):
|
|
112 |
on_change(inputs, update_fn, outputs)
|
113 |
|
114 |
with gr.Blocks(css='style.css') as demo:
|
115 |
-
|
|
|
116 |
with gr.Column(elem_id="col-container"):
|
117 |
with gr.Tabs():
|
118 |
for tab in tabs_configuration:
|
119 |
create_tab(*tab)
|
120 |
-
render_about_tab() # "Support Us" 탭 추가
|
121 |
|
122 |
demo.load(
|
123 |
initial_load,
|
|
|
48 |
|
49 |
return (rebalancing_results, share_price_trend_results, dollar_cost_averaging_results, retirement_results)
|
50 |
|
51 |
+
MARKDOWN = ("""
|
52 |
+
|
53 |
+
If you find this tool useful and would like to support the development of such projects, please consider making a donation. Your support is greatly appreciated.
|
54 |
+
|
55 |
+
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M8SBRC396DPBW)
|
56 |
+
|
57 |
+
Or, if you prefer, you can also support us through KakaoPay at:
|
58 |
+
|
59 |
+
<a href="https://qr.kakaopay.com/Ej7jF6o7B" target="_blank">
|
60 |
+
<img src="https://t1.kakaocdn.net/pay_brand_admin/file/NvAxmhwMItNT4J2Uq1Rxt/ic-pfm.png" alt="Donate with KakaoPay" style="width: 150px;">
|
61 |
+
</a>
|
62 |
+
|
63 |
+
If you have any questions or feedback, please contact us at: <a href="mailto:[email protected]">[email protected]</a>
|
64 |
+
""")
|
65 |
+
MARKDOWN11 = """
|
66 |
# TuneIt 🔥 Investment Toolkit
|
67 |
|
68 |
Welcome to the **TuneIt Investment Toolkit**! This all-in-one platform is designed to help you optimize your financial strategies, whether you're balancing your portfolio, analyzing market trends, planning for retirement, or maximizing dividends.
|
|
|
126 |
on_change(inputs, update_fn, outputs)
|
127 |
|
128 |
with gr.Blocks(css='style.css') as demo:
|
129 |
+
with gr.Accordion("🤝 DONATE", open=True):
|
130 |
+
gr.Markdown(MARKDOWN, elem_id="col-container")
|
131 |
with gr.Column(elem_id="col-container"):
|
132 |
with gr.Tabs():
|
133 |
for tab in tabs_configuration:
|
134 |
create_tab(*tab)
|
135 |
+
# render_about_tab() # "Support Us" 탭 추가
|
136 |
|
137 |
demo.load(
|
138 |
initial_load,
|
interface/retirement_planning_interface.py
CHANGED
@@ -7,15 +7,6 @@ examples = [
|
|
7 |
]
|
8 |
|
9 |
# Define the input components
|
10 |
-
donate = gr.Markdown("""
|
11 |
-
If you find this tool useful and would like to support the development of such projects, please consider making a donation. Your support is greatly appreciated.
|
12 |
-
|
13 |
-
<a href="https://qr.kakaopay.com/Ej7jF6o7B" target="_blank">
|
14 |
-
<img src="https://i.namu.wiki/i/yeldViPIXLvAnU1fiZQvvlqkdmheojMC0DjMxolqLldqv_0cojbJ-3_csHfBA_b8Tyh4bPB9OGkJZ6u7hoVwlVSdxEUL3psSpr39TjnQtbpYQQkEXRXJsFrWeSJHJaCUOMtOKwB_9Obtf8dwgL6ItA.svg" alt="Donate with KakaoPay" style="width: 150px;">
|
15 |
-
</a>
|
16 |
-
|
17 |
-
If you have any questions or feedback, please contact us at: <a href="mailto:[email protected]">[email protected]</a>
|
18 |
-
""")
|
19 |
title_1 = gr.Markdown("<h3 class='h3_title'>Profile</h3>")
|
20 |
current_age = gr.Slider(label="Current Age (15-60 Years)", value=35, minimum=15, maximum=60, step=1)
|
21 |
retirement_age = gr.Slider(label="Retirement Age (Upto 70 Years)", value=55, minimum=15, maximum=70, step=1)
|
@@ -35,7 +26,7 @@ post_retirement_dividend_yield = gr.Number(label="Dividend Yield (Post-retiremen
|
|
35 |
|
36 |
input = [current_age, retirement_age, life_expectancy, monthly_income_required, inflation_rate, initial_investment, monthly_contribution, annual_increase_in_monthly_contribution, reinvest_dividends, pre_retirement_dividend_growth, post_retirement_dividend_growth, pre_retirement_dividend_yield, post_retirement_dividend_yield]
|
37 |
output = gr.HTML()
|
38 |
-
component_rows = [
|
39 |
title_1, [current_age, retirement_age, life_expectancy],[monthly_income_required, inflation_rate],
|
40 |
title_2, [initial_investment, monthly_contribution, annual_increase_in_monthly_contribution], [reinvest_dividends],
|
41 |
title_3, [pre_retirement_dividend_growth, post_retirement_dividend_growth], [pre_retirement_dividend_yield, post_retirement_dividend_yield]
|
|
|
7 |
]
|
8 |
|
9 |
# Define the input components
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
title_1 = gr.Markdown("<h3 class='h3_title'>Profile</h3>")
|
11 |
current_age = gr.Slider(label="Current Age (15-60 Years)", value=35, minimum=15, maximum=60, step=1)
|
12 |
retirement_age = gr.Slider(label="Retirement Age (Upto 70 Years)", value=55, minimum=15, maximum=70, step=1)
|
|
|
26 |
|
27 |
input = [current_age, retirement_age, life_expectancy, monthly_income_required, inflation_rate, initial_investment, monthly_contribution, annual_increase_in_monthly_contribution, reinvest_dividends, pre_retirement_dividend_growth, post_retirement_dividend_growth, pre_retirement_dividend_yield, post_retirement_dividend_yield]
|
28 |
output = gr.HTML()
|
29 |
+
component_rows = [
|
30 |
title_1, [current_age, retirement_age, life_expectancy],[monthly_income_required, inflation_rate],
|
31 |
title_2, [initial_investment, monthly_contribution, annual_increase_in_monthly_contribution], [reinvest_dividends],
|
32 |
title_3, [pre_retirement_dividend_growth, post_retirement_dividend_growth], [pre_retirement_dividend_yield, post_retirement_dividend_yield]
|