Spaces:
Runtime error
Runtime error
Final Submission
Browse files- prediction.py +3 -3
prediction.py
CHANGED
@@ -32,10 +32,10 @@ def forecasting(month):
|
|
32 |
|
33 |
# Define the Streamlit app
|
34 |
def run():
|
35 |
-
st.title("Quantity Forecasting
|
36 |
|
37 |
# Input the number of months to forecast
|
38 |
-
months_to_forecast = st.slider("How many
|
39 |
|
40 |
# Predict button
|
41 |
if st.button("Predict"):
|
@@ -48,7 +48,7 @@ def run():
|
|
48 |
ax.plot(quantity_forecast, color='blue', label='Quantity Forecast')
|
49 |
ax.set_xlabel('Date')
|
50 |
ax.set_ylabel('Quantity')
|
51 |
-
ax.set_title(f"Quantity Forecast for the Next {months_to_forecast}
|
52 |
ax.legend()
|
53 |
st.pyplot(fig)
|
54 |
|
|
|
32 |
|
33 |
# Define the Streamlit app
|
34 |
def run():
|
35 |
+
st.title("Quantity Sales Forecasting")
|
36 |
|
37 |
# Input the number of months to forecast
|
38 |
+
months_to_forecast = st.slider("How many weeks to forecast?", 1, 13, 3)
|
39 |
|
40 |
# Predict button
|
41 |
if st.button("Predict"):
|
|
|
48 |
ax.plot(quantity_forecast, color='blue', label='Quantity Forecast')
|
49 |
ax.set_xlabel('Date')
|
50 |
ax.set_ylabel('Quantity')
|
51 |
+
ax.set_title(f"Quantity Forecast for the Next {months_to_forecast} Weeks")
|
52 |
ax.legend()
|
53 |
st.pyplot(fig)
|
54 |
|