bqpxben commited on
Commit
c19463a
·
1 Parent(s): 1debb2e

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -11
app.py CHANGED
@@ -25,17 +25,20 @@ def main():
25
  clicked = st.form_submit_button("Predict quality")
26
 
27
  if clicked:
28
- result=model.predict(pd.DataFrame({"fixed_acidity": [fixed_acidity],
29
- "volatile_acidity": [volatile_acidity],
30
- "citric_acid": [citric_acid],
31
- "residual_sugar": [residual_sugar],
32
- "chlorides": [chlorides],
33
- "free_sulfur_dioxide": [free_sulfur_dioxide],
34
- "total_sulfur_dioxide": [total_sulfur_dioxide],
35
- "density": [density],
36
- "ph": [ph],
37
- "sulphates": [sulphates],
38
- "alcohol": [alcohol]}))
 
 
 
39
  predicted_quality_rank = result[0]
40
  st.success('The predicted wine quality ranking is {}'.format(predicted_quality_rank))
41
 
 
25
  clicked = st.form_submit_button("Predict quality")
26
 
27
  if clicked:
28
+ result = model.predict(pd.DataFrame({
29
+ "fixed acidity": [fixed_acidity],
30
+ "volatile acidity": [volatile_acidity],
31
+ "citric acid": [citric_acid],
32
+ "residual sugar": [residual_sugar],
33
+ "chlorides": [chlorides],
34
+ "free sulfur dioxide": [free_sulfur_dioxide],
35
+ "total sulfur dioxide": [total_sulfur_dioxide],
36
+ "density": [density],
37
+ "pH": [ph],
38
+ "sulphates": [sulphates],
39
+ "alcohol": [alcohol]
40
+ }))
41
+
42
  predicted_quality_rank = result[0]
43
  st.success('The predicted wine quality ranking is {}'.format(predicted_quality_rank))
44