a10 commited on
Commit
55dfc54
·
1 Parent(s): 7bdf96a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
@@ -81,15 +82,5 @@ def asubmit(aparam):
81
 
82
  # lin.score(adf3[['Date']], adf3['Celsius'])
83
  # st.write(lin.predict(np.array([[20230223]])))
84
- st.write(lin.predict(np.array([['Date']], dtype='int32')))
85
-
86
- adf = pd.DataFrame(
87
- astations,
88
- columns=astationcolumns
89
- )
90
- aoption = acontainer1.selectbox(
91
- 'Which station?',
92
- adf['atitle']
93
- )
94
- if acontainer2.button("Submit") == True:
95
- asubmit(aparam={"aselected":aoption,"acontainer":acontainer3,"adataframe":adf,"acolumntitles":['Date','Celsius'],})
 
1
+
2
  import streamlit as st
3
  import pandas as pd
4
  import numpy as np
 
82
 
83
  # lin.score(adf3[['Date']], adf3['Celsius'])
84
  # st.write(lin.predict(np.array([[20230223]])))
85
+ # st.write(lin.predict(np.array([['Date']], dtype='int32')))
86
+ st.write(lin.predict(adf3[['Date']]))