Spaces:
Sleeping
Sleeping
changed int to float
Browse files
app.py
CHANGED
@@ -57,10 +57,10 @@ def main():
|
|
57 |
trained_model = train_iris_model(algorithm)
|
58 |
|
59 |
st.sidebar.header("User Input")
|
60 |
-
sepal_length = st.sidebar.slider("Sepal Length", 0.0, 10.0, 1)
|
61 |
-
sepal_width = st.sidebar.slider("Sepal Width", 0.0, 10.0, 1)
|
62 |
-
petal_length = st.sidebar.slider("Petal Length", 0.0, 10.0, 1)
|
63 |
-
petal_width = st.sidebar.slider("Petal Width", 0.0, 10.0, 1)
|
64 |
|
65 |
input_values = [sepal_length, sepal_width, petal_length, petal_width]
|
66 |
prediction_result, confidence = predict_iris_species(trained_model, input_values)
|
|
|
57 |
trained_model = train_iris_model(algorithm)
|
58 |
|
59 |
st.sidebar.header("User Input")
|
60 |
+
sepal_length = st.sidebar.slider("Sepal Length", 0.0, 10.0, 1.0)
|
61 |
+
sepal_width = st.sidebar.slider("Sepal Width", 0.0, 10.0, 1.0)
|
62 |
+
petal_length = st.sidebar.slider("Petal Length", 0.0, 10.0, 1.0)
|
63 |
+
petal_width = st.sidebar.slider("Petal Width", 0.0, 10.0, 1.0)
|
64 |
|
65 |
input_values = [sepal_length, sepal_width, petal_length, petal_width]
|
66 |
prediction_result, confidence = predict_iris_species(trained_model, input_values)
|