tappyness1 commited on
Commit
e8b1f7d
1 Parent(s): 83ff5e5

predictive app

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -103,11 +103,10 @@ def main():
103
  clf = train_model(x_train, y_train)
104
  col1, col2, col3 = st.columns(3)
105
  with col1:
106
- pred_hour_choice = st.selectbox(
107
- "Choose Your Planned Hour",
108
- options= hours,
109
- key = "pred_hour", index = hours.index("08:00")
110
- )
111
  with col2:
112
  pred_view_choice = st.selectbox(
113
  "Choose View",
@@ -115,9 +114,11 @@ def main():
115
  key = "pred_view"
116
  )
117
  with col3:
118
- d = st.date_input(
119
- "Choose Your Planned Date",
120
- date(today[0],today[1], today[2]))
 
 
121
 
122
  starter_variables = [x_train, str(d), pred_hour_choice, pred_view_choice]
123
  st.plotly_chart(predicted_figure(clf, starter_variables, figs))
 
103
  clf = train_model(x_train, y_train)
104
  col1, col2, col3 = st.columns(3)
105
  with col1:
106
+ d = st.date_input(
107
+ "Choose Your Planned Date",
108
+ date(today[0],today[1], today[2]))
109
+
 
110
  with col2:
111
  pred_view_choice = st.selectbox(
112
  "Choose View",
 
114
  key = "pred_view"
115
  )
116
  with col3:
117
+ pred_hour_choice = st.selectbox(
118
+ "Choose Your Planned Hour",
119
+ options= hours,
120
+ key = "pred_hour", index = hours.index("08:00")
121
+ )
122
 
123
  starter_variables = [x_train, str(d), pred_hour_choice, pred_view_choice]
124
  st.plotly_chart(predicted_figure(clf, starter_variables, figs))