Update app.py
Browse files
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 |
-
|
20 |
-
|
21 |
-
|
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):
|