Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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'
|
|
|
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'
|