Update app.py
Browse files
app.py
CHANGED
@@ -12,5 +12,5 @@ with st.form(key='my_form'):
|
|
12 |
X, y = iris.data, iris.target
|
13 |
knn = neighbors.KNeighborsClassifier(n_neighbors=3)
|
14 |
knn.fit(X, y)
|
15 |
-
predict = knn.predict([[sLen,
|
16 |
st.text(iris.target_names[predict])
|
|
|
12 |
X, y = iris.data, iris.target
|
13 |
knn = neighbors.KNeighborsClassifier(n_neighbors=3)
|
14 |
knn.fit(X, y)
|
15 |
+
predict = knn.predict([[sLen,sWid,pLen,pWid]])
|
16 |
st.text(iris.target_names[predict])
|