Circhastic commited on
Commit
44ca278
1 Parent(s): 707f8be

Version 1 hotfix #32 for merge

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -352,7 +352,7 @@ if (st.session_state.uploaded):
352
  fig.add_trace(go.Scatter(x=merged_data[merged_data.columns[0]], y=merged_data['Forecasted Future Sales'], mode='lines', name='Forecasted Future Sales'))
353
  fig.update_layout(title='Forecasted Sales Data', xaxis_title='Date', yaxis_title='Sales')
354
  fig.update_xaxes(range=['2020-01-01', '2025-01-01']) # TODO: Change this to be adaptive
355
- st.plotly_chart(fig)
356
  st.write(f"MAPE score: {mape}% - {interpretation}")
357
 
358
  col = st.columns(2)
@@ -360,7 +360,7 @@ if (st.session_state.uploaded):
360
  col[0].subheader(f"Forecasted sales in the next {period} days")
361
  col[0].write(df)
362
  with col[1]:
363
- with st.form("question_form"):
364
  question = col[1].text_input('Ask a Question about the Forecasted Data', placeholder="What is the total sales in the month of December?")
365
  query_button = col[1].form_submit_button(label='Generate Answer')
366
  if query_button or question:
 
352
  fig.add_trace(go.Scatter(x=merged_data[merged_data.columns[0]], y=merged_data['Forecasted Future Sales'], mode='lines', name='Forecasted Future Sales'))
353
  fig.update_layout(title='Forecasted Sales Data', xaxis_title='Date', yaxis_title='Sales')
354
  fig.update_xaxes(range=['2020-01-01', '2025-01-01']) # TODO: Change this to be adaptive
355
+ st.plotly_chart(fig, use_container_width=True)
356
  st.write(f"MAPE score: {mape}% - {interpretation}")
357
 
358
  col = st.columns(2)
 
360
  col[0].subheader(f"Forecasted sales in the next {period} days")
361
  col[0].write(df)
362
  with col[1]:
363
+ with col[1].form("question_form"):
364
  question = col[1].text_input('Ask a Question about the Forecasted Data', placeholder="What is the total sales in the month of December?")
365
  query_button = col[1].form_submit_button(label='Generate Answer')
366
  if query_button or question: