HuSusu commited on
Commit
50a132d
·
1 Parent(s): cd3b8a3

update calculator

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -1,18 +1,20 @@
1
  import gradio as gr
2
 
3
  title_conpund = "Uninvested Earnings Calculator"
4
- # description_conpound = """
5
- # Your low resolution image will be reconstructed to high resolution with a scale of 2 with a convolutional neural network!<br>
6
- # Detailed training and dataset can be found on my [github repo](https://github.com/susuhu/super-resolution).<br>
7
- # """
8
 
9
  title_ETF1 = "Stock Earnings Calculator"
 
 
 
10
 
11
  def greet(name):
12
  return "Hello " + name + "!!"
13
 
14
 
15
- def conpound(
16
  initial_investment,
17
  # annual_contribution,
18
  # monthly_contribution,
@@ -54,7 +56,7 @@ def ETF_with_price_change_rate(
54
 
55
 
56
  iface = gr.Interface(
57
- fn=conpound,
58
  inputs=[
59
  gr.Number(label="Initial Investment", precision=2),
60
  gr.Number(label="Yearly Interest Rate", precision=3, step=0.01),
 
1
  import gradio as gr
2
 
3
  title_conpund = "Uninvested Earnings Calculator"
4
+ description_conpound = """
5
+ Monthly compound.
6
+ """
 
7
 
8
  title_ETF1 = "Stock Earnings Calculator"
9
+ description_ETF1 = """
10
+ Daily compound is not included.
11
+ """
12
 
13
  def greet(name):
14
  return "Hello " + name + "!!"
15
 
16
 
17
+ def compound(
18
  initial_investment,
19
  # annual_contribution,
20
  # monthly_contribution,
 
56
 
57
 
58
  iface = gr.Interface(
59
+ fn=compound,
60
  inputs=[
61
  gr.Number(label="Initial Investment", precision=2),
62
  gr.Number(label="Yearly Interest Rate", precision=3, step=0.01),