filipeclduarte commited on
Commit
f374886
·
1 Parent(s): edaa073

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
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
- horizons = int(st.text_input("Write the number of horizons"))
20
- seasonality = calc_seasonality(freq)
21
-
22
- st.write(f'Seasonality: {seasonality}')
23
- if series is not None and freq is not None and horizons is not None and seasonality is not None:
 
 
 
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),