Spaces:
Runtime error
Runtime error
Added columns
Browse files
app.py
CHANGED
|
@@ -31,9 +31,9 @@ def wine_quality(type, fixed_acidity, volatile_acidity, citric_acid, residual_su
|
|
| 31 |
density = float(density)
|
| 32 |
pH = float(pH)
|
| 33 |
sulphates = float(sulphates)
|
| 34 |
-
alcohol = float(alcohol)
|
| 35 |
df = pd.DataFrame([[type, fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chlorides, free_sulfur_dioxide, total_sulfur_dioxide, density, pH, sulphates, alcohol]],
|
| 36 |
-
columns=['type', 'fixed acidity', 'volatile acidity', 'citric acid', 'residual sugar', 'chlorides',])
|
| 37 |
print("Predicting")
|
| 38 |
print(df)
|
| 39 |
# 'res' is a list of predictions returned as the label.
|
|
|
|
| 31 |
density = float(density)
|
| 32 |
pH = float(pH)
|
| 33 |
sulphates = float(sulphates)
|
| 34 |
+
alcohol = float(alcohol)
|
| 35 |
df = pd.DataFrame([[type, fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chlorides, free_sulfur_dioxide, total_sulfur_dioxide, density, pH, sulphates, alcohol]],
|
| 36 |
+
columns=['type', 'fixed acidity', 'volatile acidity', 'citric acid', 'residual sugar', 'chlorides', 'free sulfur dioxide', 'total sulfur dioxide', 'density', 'pH', 'sulphates', 'alcohol'])
|
| 37 |
print("Predicting")
|
| 38 |
print(df)
|
| 39 |
# 'res' is a list of predictions returned as the label.
|