Ottosen commited on
Commit
624e20f
·
1 Parent(s): 4c54e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,7 +5,7 @@ def house_saving(annual_salary, portion_saved, total_cost, portion_down_payment)
5
  return 1
6
  else:
7
  months = (total_cost * portion_down_payment - portion_saved) / ((annual_salary * portion_saved) / 12)
8
- return months
9
 
10
 
11
  demo = gr.Interface(
@@ -18,10 +18,10 @@ demo = gr.Interface(
18
  ],
19
  outputs="number",
20
  examples=[
21
- [100, 0.1, 1000, 0.2, 100],
22
  ],
23
  title="House Saving Time Calculator",
24
- description="heres a house saving time calculator. Enjoy!"
25
  )
26
 
27
  demo.launch()
 
5
  return 1
6
  else:
7
  months = (total_cost * portion_down_payment - portion_saved) / ((annual_salary * portion_saved) / 12)
8
+ return round(months,0)
9
 
10
 
11
  demo = gr.Interface(
 
18
  ],
19
  outputs="number",
20
  examples=[
21
+ [100, 0.1, 1000, 0.2],
22
  ],
23
  title="House Saving Time Calculator",
24
+ description="heres a house saving time calculator, estimating the number of months it takes to pay the down payment for your dream house. Enjoy!"
25
  )
26
 
27
  demo.launch()