Spaces:
Runtime error
Runtime error
Corrected Values
Browse files
app.py
CHANGED
|
@@ -19,9 +19,9 @@ print("Model downloaded")
|
|
| 19 |
def wine_quality(type, fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chlorides, free_sulfur_dioxide, total_sulfur_dioxide, density, pH, sulphates, alcohol):
|
| 20 |
print("Calling function")
|
| 21 |
if(type == "red"):
|
| 22 |
-
type =
|
| 23 |
else:
|
| 24 |
-
type =
|
| 25 |
fixed_acidity = float(fixed_acidity)
|
| 26 |
volatile_acidity = float(volatile_acidity)
|
| 27 |
citric_acid = float(citric_acid)
|
|
|
|
| 19 |
def wine_quality(type, fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chlorides, free_sulfur_dioxide, total_sulfur_dioxide, density, pH, sulphates, alcohol):
|
| 20 |
print("Calling function")
|
| 21 |
if(type == "red"):
|
| 22 |
+
type = -1.750190
|
| 23 |
else:
|
| 24 |
+
type = 0.571367
|
| 25 |
fixed_acidity = float(fixed_acidity)
|
| 26 |
volatile_acidity = float(volatile_acidity)
|
| 27 |
citric_acid = float(citric_acid)
|