Redve commited on
Commit
ec23042
·
1 Parent(s): 7fb3b3f
Files changed (1) hide show
  1. app.py +2 -2
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 = -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)
 
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
23
  else:
24
+ type = 0
25
  fixed_acidity = float(fixed_acidity)
26
  volatile_acidity = float(volatile_acidity)
27
  citric_acid = float(citric_acid)