Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ from sklearn import datasets
|
|
| 13 |
iris = datasets.load_iris()
|
| 14 |
|
| 15 |
# Define the prediction function
|
| 16 |
-
def predict_iris(sepal_length
|
| 17 |
prediction = clf.predict([[sepal_length, sepal_width, petal_length, petal_width]])
|
| 18 |
return iris.target_names[int(prediction[0])]
|
| 19 |
|
|
|
|
| 13 |
iris = datasets.load_iris()
|
| 14 |
|
| 15 |
# Define the prediction function
|
| 16 |
+
def predict_iris(sepal_length, sepal_width, petal_length, petal_width):
|
| 17 |
prediction = clf.predict([[sepal_length, sepal_width, petal_length, petal_width]])
|
| 18 |
return iris.target_names[int(prediction[0])]
|
| 19 |
|