Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,9 +25,9 @@ onpromotion= st.number_input(label='Please enter total number of items on promot
|
|
25 |
# input dataframe
|
26 |
ok= st.button('forecast sales')
|
27 |
if ok:
|
28 |
-
input_data= [ds,onpromotion,transactions]
|
29 |
-
inputs= pd.DataFrame([input_data],columns=['ds','onpromotion','transactions'])
|
30 |
-
# making Prediction
|
31 |
-
forecast=model.predict(inputs)
|
32 |
-
output_values=forecast['yhat']
|
33 |
-
st.success (f'the estimated forecast sales ${output_values.values[0]:.2f}')
|
|
|
25 |
# input dataframe
|
26 |
ok= st.button('forecast sales')
|
27 |
if ok:
|
28 |
+
input_data= [ds,onpromotion,transactions]
|
29 |
+
inputs= pd.DataFrame([input_data],columns=['ds','onpromotion','transactions'])
|
30 |
+
# making Prediction
|
31 |
+
forecast=model.predict(inputs)
|
32 |
+
output_values=forecast['yhat']
|
33 |
+
st.success (f'the estimated forecast sales ${output_values.values[0]:.2f}')
|