Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ def predict_product_sale_batch():
|
|
| 91 |
input_data["Store_Age"] = current_year - input_data["Store_Establishment_Year"]
|
| 92 |
input_data.drop("Store_Establishment_Year", axis=1, inplace=True)
|
| 93 |
|
| 94 |
-
# Make predictions for all
|
| 95 |
predicted_sales = model.predict(input_data).tolist()
|
| 96 |
|
| 97 |
# Create a dictionary of predictions with product IDs as keys
|
|
@@ -103,4 +103,5 @@ def predict_product_sale_batch():
|
|
| 103 |
|
| 104 |
# Run the Flask application in debug mode if this script is executed directly
|
| 105 |
if __name__ == '__main__':
|
| 106 |
-
SK_Sales_Forecast_api.run(debug=True)
|
|
|
|
|
|
| 91 |
input_data["Store_Age"] = current_year - input_data["Store_Establishment_Year"]
|
| 92 |
input_data.drop("Store_Establishment_Year", axis=1, inplace=True)
|
| 93 |
|
| 94 |
+
# Make predictions for all products in the DataFrame
|
| 95 |
predicted_sales = model.predict(input_data).tolist()
|
| 96 |
|
| 97 |
# Create a dictionary of predictions with product IDs as keys
|
|
|
|
| 103 |
|
| 104 |
# Run the Flask application in debug mode if this script is executed directly
|
| 105 |
if __name__ == '__main__':
|
| 106 |
+
#SK_Sales_Forecast_api.run(debug=True)
|
| 107 |
+
SK_Sales_Forecast_api.run(host="0.0.0.0", port=7860)
|