Snehadeep commited on
Commit
e1ef2ee
1 Parent(s): 4914a22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -116,8 +116,11 @@ st.markdown(""" CALL % INCREASE MEANS MARKET GOES DOWN
116
  """)
117
  x = st.slider('Select an integer x', 0, 10, 1)
118
  y = st.slider('Select an integer y', 0, 10, 1)
119
- # df = pd.DataFrame({'x': [x], 'y': [y] , 'x + y': [x + y]}, index = ['addition row'])
120
- df = (get_data())
 
 
 
121
  st.write(df)
122
 
123
 
@@ -125,3 +128,5 @@ st.write(df)
125
 
126
 
127
 
 
 
 
116
  """)
117
  x = st.slider('Select an integer x', 0, 10, 1)
118
  y = st.slider('Select an integer y', 0, 10, 1)
119
+ df = pd.DataFrame({'x': [x], 'y': [y] , 'x + y': [x + y]}, index = ['addition row'])
120
+ if st.button('add'):
121
+ result = add(1, 2)
122
+ st.write('result: %s' % result)
123
+ # df = (get_data())
124
  st.write(df)
125
 
126
 
 
128
 
129
 
130
 
131
+
132
+