xavierbarbier commited on
Commit
a64e049
·
1 Parent(s): 642f7a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def greet(energy_kcal_100g, fat_100g, saturated_fat_100g,
46
  temp_scaled = std_scale.transform(X)
47
 
48
  # Make prediction
49
- y_pred = model.predict(temp)
50
 
51
  # reverse label encoding
52
  y_pred = labelencoder.inverse_transform(y_pred)
 
46
  temp_scaled = std_scale.transform(X)
47
 
48
  # Make prediction
49
+ y_pred = model.predict(temp_scaled)
50
 
51
  # reverse label encoding
52
  y_pred = labelencoder.inverse_transform(y_pred)