Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,7 @@ def compound(
|
|
32 |
initial_investment: euro
|
33 |
yearly_interest_rate: percentage
|
34 |
investment_length
|
|
|
35 |
"""
|
36 |
return (
|
37 |
(initial_investment
|
@@ -70,11 +71,11 @@ iface = gr.Interface(
|
|
70 |
inputs=[
|
71 |
gr.Number(label="Initial Investment", precision=2),
|
72 |
gr.Number(label="Yearly Interest Rate", precision=3, step=0.01),
|
73 |
-
gr.Number(label="Tax Rate", precision=2, step=0.4),
|
74 |
gr.Number(label="Investment Length in Months", precision=0),
|
|
|
75 |
],
|
76 |
outputs=gr.Number(label="Net Earnings", precision=3),
|
77 |
-
examples=[[5000, 0.04, 0.4
|
78 |
title=title_conpund,
|
79 |
description = description_conpound
|
80 |
)
|
|
|
32 |
initial_investment: euro
|
33 |
yearly_interest_rate: percentage
|
34 |
investment_length
|
35 |
+
tax_rate
|
36 |
"""
|
37 |
return (
|
38 |
(initial_investment
|
|
|
71 |
inputs=[
|
72 |
gr.Number(label="Initial Investment", precision=2),
|
73 |
gr.Number(label="Yearly Interest Rate", precision=3, step=0.01),
|
|
|
74 |
gr.Number(label="Investment Length in Months", precision=0),
|
75 |
+
gr.Number(label="Tax Rate", precision=2, step=0.4),
|
76 |
],
|
77 |
outputs=gr.Number(label="Net Earnings", precision=3),
|
78 |
+
examples=[[5000, 0.04, 1, 0.4], [5000, 0.04, 12, 0.4]],
|
79 |
title=title_conpund,
|
80 |
description = description_conpound
|
81 |
)
|