Update app.py
Browse files
app.py
CHANGED
@@ -13,4 +13,4 @@ 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.
|
|
|
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])
|