Spaces:
Build error
Build error
Commit ·
cf1d20f
1
Parent(s): 2d94c7e
Update app.py
Browse files5 unmodified lines67891011124 unmodified lines171819202122235 unmodified linesimport numpy as npimport pandas as pdSTART = "2015-01-01"TODAY = date.today().strftime("%Y-%m-%d")st.title('Stock Forecast App')4 unmodified linesn_years = st.slider('Years of prediction:', 1, 2)period = n_years * 365@st.cachedef load_data(ticker):data = yf.download(ticker, START, TODAY)data.reset_index(inplace=True)5 unmodified lines67891011124 unmodified lines171819202122235 unmodified linesimport numpy as npimport pandas as pdSTART = "2018-01-01"TODAY = date.today().strftime("%Y-%m-%d")st.title('Stock Forecast App')4 unmodified linesn_years = st.slider('Years of prediction:', 1, 2)period = n_years * 365st.cache_datadef load_data(ticker):data = yf.download(ticker, START, TODAY)data.reset_index(inplace=True)
app.py+2-2