AjaykumarPilla commited on
Commit
2a1f321
·
verified ·
1 Parent(s): 1e61036

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -408,7 +408,7 @@ def process_forecast(consumable_type, usage_series, current_stock, is_automated=
408
  plot_bgcolor='rgba(0,0,0,0)',
409
  paper_bgcolor='rgba(0,0,0,0)',
410
  margin=dict(l=50, r=50, t=50, b=100)
411
- ))
412
  st.plotly_chart(fig_daily, use_container_width=True)
413
 
414
  st.header("Threshold Alerts Visualization")
@@ -430,7 +430,7 @@ def process_forecast(consumable_type, usage_series, current_stock, is_automated=
430
  xaxis_title='Category',
431
  yaxis_title='Units',
432
  template='plotly_white'
433
- ))
434
  st.plotly_chart(fig_alerts)
435
  else:
436
  alert_status = [current_stock < forecast for forecast in [forecast_7, forecast_14, forecast_30]]
@@ -459,7 +459,7 @@ def process_forecast(consumable_type, usage_series, current_stock, is_automated=
459
  plot_bgcolor='rgba(0,0,0,0)',
460
  paper_bgcolor='rgba(0,0,0,0)',
461
  margin=dict(l=50, r=50, t=50, b=100)
462
- ))
463
  alert_data = pd.DataFrame({
464
  'Category': ['Current Stock', '7-Day Forecast', '14-Day Forecast', '30-Day Forecast'],
465
  'Units': [current_stock, forecast_7, forecast_14, forecast_30],
@@ -478,7 +478,7 @@ def process_forecast(consumable_type, usage_series, current_stock, is_automated=
478
  xaxis_title='Category',
479
  yaxis_title='Units',
480
  template='plotly_white'
481
- ))
482
 
483
  if sf is not None:
484
  try:
 
408
  plot_bgcolor='rgba(0,0,0,0)',
409
  paper_bgcolor='rgba(0,0,0,0)',
410
  margin=dict(l=50, r=50, t=50, b=100)
411
+ )
412
  st.plotly_chart(fig_daily, use_container_width=True)
413
 
414
  st.header("Threshold Alerts Visualization")
 
430
  xaxis_title='Category',
431
  yaxis_title='Units',
432
  template='plotly_white'
433
+ )
434
  st.plotly_chart(fig_alerts)
435
  else:
436
  alert_status = [current_stock < forecast for forecast in [forecast_7, forecast_14, forecast_30]]
 
459
  plot_bgcolor='rgba(0,0,0,0)',
460
  paper_bgcolor='rgba(0,0,0,0)',
461
  margin=dict(l=50, r=50, t=50, b=100)
462
+ )
463
  alert_data = pd.DataFrame({
464
  'Category': ['Current Stock', '7-Day Forecast', '14-Day Forecast', '30-Day Forecast'],
465
  'Units': [current_stock, forecast_7, forecast_14, forecast_30],
 
478
  xaxis_title='Category',
479
  yaxis_title='Units',
480
  template='plotly_white'
481
+ )
482
 
483
  if sf is not None:
484
  try: