Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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", "
|
| 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 |
|