a10 commited on
Commit
5147832
·
1 Parent(s): e8ec4f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import streamlit as st
3
  import pandas as pd
4
  import numpy as np
@@ -54,7 +53,7 @@ def asubmit(aparam):
54
  a24hour = int(time.strftime("%H",anow))
55
  aminute = int(time.strftime("%M",anow))
56
  asecond = int(time.strftime("%S",anow))
57
- acontainer4.write(("{}-{}-{} {}:{}:{}").format(ayear,amonth,amonthday,a24hour,aminute,asecond))
58
  os.environ['TZ'] = atimezone
59
  time.tzset()
60
 
@@ -85,7 +84,7 @@ def asubmit(aparam):
85
  lr = LinearRegression()
86
  lr.fit(adf3[['Date']].astype('float').astype('int32'), adf3['Celsius'])
87
 
88
- atrendproject = [20230223,]
89
  st.dataframe(pd.merge(pd.DataFrame([atrendproject]), pd.DataFrame(lr.predict(np.array([atrendproject]))), left_index=True, right_index=True))
90
 
91
  adf = pd.DataFrame(
 
 
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
 
53
  a24hour = int(time.strftime("%H",anow))
54
  aminute = int(time.strftime("%M",anow))
55
  asecond = int(time.strftime("%S",anow))
56
+ acontainer4.write(("{}-{:02d}-{:02d} {:02d}:{:02d}:{:02d}").format(ayear,amonth,amonthday,a24hour,aminute,asecond))
57
  os.environ['TZ'] = atimezone
58
  time.tzset()
59
 
 
84
  lr = LinearRegression()
85
  lr.fit(adf3[['Date']].astype('float').astype('int32'), adf3['Celsius'])
86
 
87
+ atrendproject = [int(("{}{:02d}{:02d}").format(ayear,amonth,amonthday))]
88
  st.dataframe(pd.merge(pd.DataFrame([atrendproject]), pd.DataFrame(lr.predict(np.array([atrendproject]))), left_index=True, right_index=True))
89
 
90
  adf = pd.DataFrame(