Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def asubmit(aparam):
|
|
80 |
|
81 |
# lin.score(adf3[['Date']], adf3['Celsius'])
|
82 |
# st.write(lin.predict(np.array([[20230223]])))
|
83 |
-
st.write(lin.predict(np.array([['Date']], dtype=int32)))
|
84 |
|
85 |
adf = pd.DataFrame(
|
86 |
astations,
|
@@ -92,3 +92,4 @@ aoption = acontainer1.selectbox(
|
|
92 |
)
|
93 |
if acontainer2.button("Submit") == True:
|
94 |
asubmit(aparam={"aselected":aoption,"acontainer":acontainer3,"adataframe":adf,"acolumntitles":['Date','Celsius'],})
|
|
|
|
80 |
|
81 |
# lin.score(adf3[['Date']], adf3['Celsius'])
|
82 |
# st.write(lin.predict(np.array([[20230223]])))
|
83 |
+
st.write(lin.predict(np.array([['Date']], dtype='int32')))
|
84 |
|
85 |
adf = pd.DataFrame(
|
86 |
astations,
|
|
|
92 |
)
|
93 |
if acontainer2.button("Submit") == True:
|
94 |
asubmit(aparam={"aselected":aoption,"acontainer":acontainer3,"adataframe":adf,"acolumntitles":['Date','Celsius'],})
|
95 |
+
|