Amitgupta2982 commited on
Commit
c05e4d9
·
verified ·
1 Parent(s): cda3836

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def predict_sales_price():
58
  X = pd.DataFrame([row])
59
 
60
  # If your model pipeline expects numeric types for some fields, coerce safely:
61
- for col in ["Product_Weight", "Product_Allocated_Area", "Product_MRP", "Store_Age"]:
62
  if col in X.columns:
63
  X[col] = pd.to_numeric(X[col], errors="coerce")
64
 
 
58
  X = pd.DataFrame([row])
59
 
60
  # If your model pipeline expects numeric types for some fields, coerce safely:
61
+ for col in ["Product_Weight", "Product_Allocated_Area", "Product_MRP", "Store_Establishment_Year"]:
62
  if col in X.columns:
63
  X[col] = pd.to_numeric(X[col], errors="coerce")
64