Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .ipynb_checkpoints/requirements-checkpoint.txt +11 -0
- app.py +5 -3
.ipynb_checkpoints/requirements-checkpoint.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pandas==2.2.2
|
| 2 |
+
numpy==2.0.2
|
| 3 |
+
scikit-learn==1.6.1
|
| 4 |
+
xgboost==2.1.4
|
| 5 |
+
joblib==1.4.2
|
| 6 |
+
Werkzeug==2.2.2
|
| 7 |
+
flask==2.2.2
|
| 8 |
+
gunicorn==20.1.0
|
| 9 |
+
requests==2.28.1
|
| 10 |
+
uvicorn[standard]
|
| 11 |
+
streamlit==1.43.2
|
app.py
CHANGED
|
@@ -9,8 +9,10 @@ import os
|
|
| 9 |
sales_forecast_predictor_api = Flask("Superkart sales forecast predictor")
|
| 10 |
|
| 11 |
# Load the trained machine learning model
|
| 12 |
-
model_path = os.path.join(os.path.dirname(__file__), "
|
| 13 |
-
model = joblib.load(model_path)
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# Define a route for the home page (GET request)
|
| 16 |
@sales_forecast_predictor_api.get('/')
|
|
@@ -85,4 +87,4 @@ def predict_sales_batch():
|
|
| 85 |
|
| 86 |
# Run the Flask application
|
| 87 |
if __name__ == '__main__':
|
| 88 |
-
|
|
|
|
| 9 |
sales_forecast_predictor_api = Flask("Superkart sales forecast predictor")
|
| 10 |
|
| 11 |
# Load the trained machine learning model
|
| 12 |
+
# model_path = os.path.join(os.path.dirname(__file__), "store_sales_prediction_model_v1_0.joblib")
|
| 13 |
+
# model = joblib.load(model_path)
|
| 14 |
+
# Load the trained machine learning model
|
| 15 |
+
model = joblib.load("rental_price_prediction_model_v1_0.joblib")
|
| 16 |
|
| 17 |
# Define a route for the home page (GET request)
|
| 18 |
@sales_forecast_predictor_api.get('/')
|
|
|
|
| 87 |
|
| 88 |
# Run the Flask application
|
| 89 |
if __name__ == '__main__':
|
| 90 |
+
sales_forecast_predictor_api.run(debug=True)
|