Spaces:
Runtime error
Runtime error
Commit
·
f374886
1
Parent(s):
edaa073
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,14 @@ if uploaded_file is not None:
|
|
| 16 |
series = st.text_input("Write the name of the variable you want to forecast")
|
| 17 |
date = st.text_input("Write the first date")
|
| 18 |
freq = st.text_input("Write the frequency")
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
series_train = pd.DataFrame(
|
| 25 |
{
|
| 26 |
'ds': pd.date_range(start=date, periods=dataframe.shape[0], freq=freq),
|
|
|
|
| 16 |
series = st.text_input("Write the name of the variable you want to forecast")
|
| 17 |
date = st.text_input("Write the first date")
|
| 18 |
freq = st.text_input("Write the frequency")
|
| 19 |
+
|
| 20 |
+
if series is not None and freq is not None:
|
| 21 |
+
|
| 22 |
+
horizons = int(st.text_input("Write the number of horizons"))
|
| 23 |
+
seasonality = calc_seasonality(freq)
|
| 24 |
+
st.write(f'Seasonality: {seasonality}')
|
| 25 |
+
|
| 26 |
+
|
| 27 |
series_train = pd.DataFrame(
|
| 28 |
{
|
| 29 |
'ds': pd.date_range(start=date, periods=dataframe.shape[0], freq=freq),
|