XPMaster commited on
Commit
f27b577
1 Parent(s): 55fb546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,6 +4,7 @@ from statsmodels.tsa.holtwinters import ExponentialSmoothing
4
  import numpy as np
5
  from itertools import product
6
  from io import BytesIO
 
7
 
8
  # Function to run the Exponential Smoothing Model
9
  def run_exp_smoothing(city_data, trend, damped_trend, seasonal, seasonal_period):
@@ -68,7 +69,8 @@ if forecast is not None:
68
  # Ensure the index is correctly formatted as 'YYYY-MM'
69
  # forecast_df.index = forecast_df.index.strftime('%Y-%m')
70
  st.table(forecast_df)
71
- st.plotly_chart(forecast_df)
 
72
  # ... [rest of the code]
73
 
74
 
 
4
  import numpy as np
5
  from itertools import product
6
  from io import BytesIO
7
+ import plotly.express as px
8
 
9
  # Function to run the Exponential Smoothing Model
10
  def run_exp_smoothing(city_data, trend, damped_trend, seasonal, seasonal_period):
 
69
  # Ensure the index is correctly formatted as 'YYYY-MM'
70
  # forecast_df.index = forecast_df.index.strftime('%Y-%m')
71
  st.table(forecast_df)
72
+ fig = px.line(forecast_df, x=forecast_df.index, y="Forecast")
73
+ st.plotly_chart(fig)
74
  # ... [rest of the code]
75
 
76