simran19 commited on
Commit
cb74c02
·
verified ·
1 Parent(s): 9e9a61f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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['sepal_length'])
20
- sepal_width = float(request.form['sepal_width'])
21
- petal_length = float(request.form['petal_length'])
22
- petal_width = float(request.form['petal_width'])
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]])