Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ def predict_store_sales_batch():
|
|
| 76 |
input_data = pd.read_csv(file)
|
| 77 |
|
| 78 |
# Make predictions for all properties in the DataFrame (get store_saless)
|
| 79 |
-
|
| 80 |
|
| 81 |
# Create a dictionary of predictions with property IDs as keys
|
| 82 |
property_ids = input_data['Product_Id'].tolist() # Assuming 'id' is the property ID column
|
|
|
|
| 76 |
input_data = pd.read_csv(file)
|
| 77 |
|
| 78 |
# Make predictions for all properties in the DataFrame (get store_saless)
|
| 79 |
+
predicted_sales = model.predict(input_data.drop("Product_Id",axis=1)).tolist()
|
| 80 |
|
| 81 |
# Create a dictionary of predictions with property IDs as keys
|
| 82 |
property_ids = input_data['Product_Id'].tolist() # Assuming 'id' is the property ID column
|