Rehman1603 commited on
Commit
782e8d7
·
verified ·
1 Parent(s): b3f9ccf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -33,14 +33,14 @@ def predict_sales(time_frame):
33
  last_date_value = df['Date'].iloc[-2]
34
  # Future forecast based on the time frame
35
  future_periods = {
36
- '7 days': 7 * 24 * 60,
37
- '10 days': 10 * 24 * 60,
38
- '15 days': 15 * 24 * 60,
39
- '1 month': 30 * 24 * 60
40
  }
41
 
42
  # Get the future time based on the selected time frame
43
- future_time = model.make_future_dataframe(periods=future_periods[time_frame], freq='T')
44
  current_time = pd.Timestamp.now()
45
 
46
  # Set the last historical date in the format 'MM/DD/YYYY HH:MM'
 
33
  last_date_value = df['Date'].iloc[-2]
34
  # Future forecast based on the time frame
35
  future_periods = {
36
+ '7 days': 7 ,
37
+ '10 days': 10 ,
38
+ '15 days': 15 ,
39
+ '1 month': 30
40
  }
41
 
42
  # Get the future time based on the selected time frame
43
+ future_time = model.make_future_dataframe(periods=future_periods[time_frame])
44
  current_time = pd.Timestamp.now()
45
 
46
  # Set the last historical date in the format 'MM/DD/YYYY HH:MM'