add model
Browse files
app.py
CHANGED
@@ -76,6 +76,8 @@ period = st.slider('Period', 1, 365, 28)
|
|
76 |
# fig = prophet_ts(symbol=sb, periods = periods)
|
77 |
ts = TS()
|
78 |
fig = None
|
79 |
-
|
80 |
-
|
|
|
|
|
81 |
st.plotly_chart(fig, use_container_width=True)
|
|
|
76 |
# fig = prophet_ts(symbol=sb, periods = periods)
|
77 |
ts = TS()
|
78 |
fig = None
|
79 |
+
with st.spinner('Wait for it...'):
|
80 |
+
if model == "Prophet":
|
81 |
+
fig = ts.prophet(period = period)
|
82 |
+
st.success('Done!')
|
83 |
st.plotly_chart(fig, use_container_width=True)
|