HuSusu commited on
Commit
710fc67
·
1 Parent(s): 73a7854

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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, 1], [5000, 0.04, 0.4, 12]],
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
  )