Update app.py
Browse files
app.py
CHANGED
|
@@ -16,10 +16,10 @@ def home():
|
|
| 16 |
def predict():
|
| 17 |
|
| 18 |
# Get form values and convert them to float
|
| 19 |
-
sepal_length = float(request.form['
|
| 20 |
-
sepal_width = float(request.form['
|
| 21 |
-
petal_length = float(request.form['
|
| 22 |
-
petal_width = float(request.form['
|
| 23 |
|
| 24 |
# Make prediction
|
| 25 |
prediction = model.predict([[sepal_length, sepal_width, petal_length, petal_width]])
|
|
|
|
| 16 |
def predict():
|
| 17 |
|
| 18 |
# Get form values and convert them to float
|
| 19 |
+
sepal_length = float(request.form['sl'])
|
| 20 |
+
sepal_width = float(request.form['sw'])
|
| 21 |
+
petal_length = float(request.form['pl'])
|
| 22 |
+
petal_width = float(request.form['pw'])
|
| 23 |
|
| 24 |
# Make prediction
|
| 25 |
prediction = model.predict([[sepal_length, sepal_width, petal_length, petal_width]])
|