Tapanat commited on
Commit
2b32d81
1 Parent(s): a253179

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -16,13 +16,9 @@ def main():
16
  clicked = st.form_submit_button("Predict Color")
17
  if clicked:
18
  result=model.predict(pd.DataFrame({"Color":[Color]}))
19
- #result=model.predict(pd.DataFrame({"Room": [room],
20
- # "Partitions": [partition],
21
- # "Rows": [rows],
22
- # "Columns": [columns],
23
- # "Color": [color]}))
24
- predicted_Color = predict_Color(result)
25
- #result = 'Red' = Red if result[0] == 1 else 'Blue'
26
  st.success('The predicted color is {}'.format(predicted_Color))
27
 
28
  def predict_Color(prediction):
 
16
  clicked = st.form_submit_button("Predict Color")
17
  if clicked:
18
  result=model.predict(pd.DataFrame({"Color":[Color]}))
19
+
20
+ predicted_Color = predict_color(result)
21
+
 
 
 
 
22
  st.success('The predicted color is {}'.format(predicted_Color))
23
 
24
  def predict_Color(prediction):