Spaces:
Sleeping
Sleeping
Upload 5 files
Browse files- Dockerfile +2 -2
- requirements.txt +9 -9
Dockerfile
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
# SuperKart Sales Forecasting API - Docker Configuration
|
| 2 |
# =====================================================
|
| 3 |
|
| 4 |
-
# Use Python 3.
|
| 5 |
-
FROM python:3.
|
| 6 |
|
| 7 |
# Set environment variables
|
| 8 |
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
| 1 |
# SuperKart Sales Forecasting API - Docker Configuration
|
| 2 |
# =====================================================
|
| 3 |
|
| 4 |
+
# Use Python 3.11 slim image for optimal size and compatibility
|
| 5 |
+
FROM python:3.11-slim
|
| 6 |
|
| 7 |
# Set environment variables
|
| 8 |
ENV PYTHONDONTWRITEBYTECODE=1
|
requirements.txt
CHANGED
|
@@ -6,30 +6,30 @@ Flask==3.0.0
|
|
| 6 |
flask-cors==4.0.0
|
| 7 |
|
| 8 |
# Machine Learning & Data Processing
|
| 9 |
-
scikit-learn==1.
|
| 10 |
xgboost==2.1.4
|
| 11 |
pandas==2.2.2
|
| 12 |
-
numpy==
|
| 13 |
|
| 14 |
# Model Serialization
|
| 15 |
joblib==1.4.2
|
| 16 |
|
| 17 |
# Additional Utilities
|
| 18 |
-
scipy==1.
|
| 19 |
-
matplotlib==3.
|
| 20 |
seaborn==0.13.2
|
| 21 |
|
| 22 |
# Production Dependencies
|
| 23 |
-
gunicorn==
|
| 24 |
werkzeug==3.0.1
|
| 25 |
|
| 26 |
# Security & Monitoring
|
| 27 |
-
python-dotenv==1.0.
|
| 28 |
requests==2.32.3
|
| 29 |
|
| 30 |
# Development & Testing (optional)
|
| 31 |
-
pytest==
|
| 32 |
pytest-flask==1.3.0
|
| 33 |
|
| 34 |
-
# Note: These versions are compatible with
|
| 35 |
-
#
|
|
|
|
| 6 |
flask-cors==4.0.0
|
| 7 |
|
| 8 |
# Machine Learning & Data Processing
|
| 9 |
+
scikit-learn==1.5.2
|
| 10 |
xgboost==2.1.4
|
| 11 |
pandas==2.2.2
|
| 12 |
+
numpy==1.26.4
|
| 13 |
|
| 14 |
# Model Serialization
|
| 15 |
joblib==1.4.2
|
| 16 |
|
| 17 |
# Additional Utilities
|
| 18 |
+
scipy==1.13.1
|
| 19 |
+
matplotlib==3.8.4
|
| 20 |
seaborn==0.13.2
|
| 21 |
|
| 22 |
# Production Dependencies
|
| 23 |
+
gunicorn==22.0.0
|
| 24 |
werkzeug==3.0.1
|
| 25 |
|
| 26 |
# Security & Monitoring
|
| 27 |
+
python-dotenv==1.0.1
|
| 28 |
requests==2.32.3
|
| 29 |
|
| 30 |
# Development & Testing (optional)
|
| 31 |
+
pytest==8.3.2
|
| 32 |
pytest-flask==1.3.0
|
| 33 |
|
| 34 |
+
# Note: These versions are compatible with Python 3.11 and Hugging Face Spaces
|
| 35 |
+
# All packages tested for production deployment compatibility
|