Spaces:
Running
Running
Circhastic
commited on
Commit
Β·
ab69cc2
1
Parent(s):
be97a09
Fix app
Browse files
app.py
CHANGED
@@ -109,7 +109,8 @@ def model_fitting(dataframe, Exo):
|
|
109 |
d=None, D=1, trace=True,
|
110 |
error_action='ignore',
|
111 |
suppress_warnings=True,
|
112 |
-
stepwise=True
|
|
|
113 |
model = futureModel
|
114 |
return model
|
115 |
|
@@ -121,7 +122,8 @@ def test_fitting(dataframe, Exo, trainY):
|
|
121 |
d=None, D=1, trace=True,
|
122 |
error_action='ignore',
|
123 |
suppress_warnings=True,
|
124 |
-
stepwise=True
|
|
|
125 |
model = trainTestModel
|
126 |
return model
|
127 |
|
@@ -197,8 +199,8 @@ def get_converted_answer(table, query):
|
|
197 |
|
198 |
# Web Application
|
199 |
|
200 |
-
st.title("Sales Forecasting Dashboard")
|
201 |
-
st.write("
|
202 |
|
203 |
# Session States
|
204 |
if 'uploaded' not in st.session_state:
|
@@ -299,10 +301,7 @@ if (st.session_state.uploaded):
|
|
299 |
st.write(df)
|
300 |
|
301 |
with st.form("question_form"):
|
302 |
-
# Add a text input for the question
|
303 |
question = st.text_input('Ask a Question about the Forecasted Data', placeholder="What is the total sales in the month of December?")
|
304 |
-
|
305 |
-
# Add a button to submit the form
|
306 |
query_button = st.form_submit_button(label='Generate Answer')
|
307 |
|
308 |
if query_button:
|
|
|
109 |
d=None, D=1, trace=True,
|
110 |
error_action='ignore',
|
111 |
suppress_warnings=True,
|
112 |
+
stepwise=True,
|
113 |
+
maxiter=7)
|
114 |
model = futureModel
|
115 |
return model
|
116 |
|
|
|
122 |
d=None, D=1, trace=True,
|
123 |
error_action='ignore',
|
124 |
suppress_warnings=True,
|
125 |
+
stepwise=True,
|
126 |
+
maxiter=7)
|
127 |
model = trainTestModel
|
128 |
return model
|
129 |
|
|
|
199 |
|
200 |
# Web Application
|
201 |
|
202 |
+
st.title("Sales Forecasting Dashboard π")
|
203 |
+
st.write("Welcome User, start using the application by uploading your file in the sidebar!")
|
204 |
|
205 |
# Session States
|
206 |
if 'uploaded' not in st.session_state:
|
|
|
301 |
st.write(df)
|
302 |
|
303 |
with st.form("question_form"):
|
|
|
304 |
question = st.text_input('Ask a Question about the Forecasted Data', placeholder="What is the total sales in the month of December?")
|
|
|
|
|
305 |
query_button = st.form_submit_button(label='Generate Answer')
|
306 |
|
307 |
if query_button:
|