Skip to content

Commit 814a683

Browse files
modify app.py file
1 parent 9352a18 commit 814a683

File tree

3 files changed

+41
-13
lines changed

3 files changed

+41
-13
lines changed

README.md

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,46 @@ It is designed for **scalability, observability**, and **automation** using cutt
2222

2323
```
2424
End-to-end-MLOps-Food-Delivery-Time-Prediction-Project/
25-
├── .github/workflows/ # CI/CD pipeline definitions
26-
│ └── deploy.yml
27-
├── artifacts/models/ # Trained model and scaler
28-
├── config/ # Configuration files
29-
├── logs/ # Application and training logs
30-
├── notebooks/ # EDA and experimentation
31-
├── pipeline/ # Training pipeline scripts
32-
├── src/ # Source code for API and utilities
33-
├── app.py # Flask API entrypoint
34-
├── Dockerfile # Docker image definition
35-
└── requirements.txt # Project dependencies
25+
├── .github/ # GitHub workflows for CI/CD
26+
│ └── workflows/
27+
│ └── deploy.yml # CI/CD pipeline for AWS deployment
28+
├── artifacts/ # Model and scaler artifacts
29+
│ ├── models/
30+
│ │ ├── model.pkl # Trained XGBoost model
31+
│ │ └── scaler.pkl # Fitted StandardScaler
32+
├── config/ # Configuration files
33+
│ └── paths_config.py # Path definitions
34+
├── Food_Delivery_Time_Prediction.egg-info/ # Python package metadata
35+
├── logs/ # Log files from app and pipeline
36+
├── notebooks/ # Exploratory data analysis notebooks
37+
├── pipeline/ # Training pipeline scripts
38+
│ ├── __init__.py
39+
│ └── training_pipeline.py # End-to-end training script
40+
├── src/ # Source code
41+
│ ├── __pycache__/ # Compiled Python files
42+
│ ├── __init__.py
43+
│ ├── custom_exception.py # Custom exception handling
44+
│ ├── data_ingestion.py # Data loading logic
45+
│ ├── data_processing.py # Data preprocessing logic
46+
│ ├── feature_store.py # RedisFeatureStore for feature management
47+
│ ├── logger.py # Logging utility
48+
│ └── model_training.py # Model training and evaluation
49+
├── static/ # Static assets for Flask app
50+
│ └── favicon.ico # Browser favicon
51+
├── templates/ # HTML templates for Flask
52+
│ └── index.html # Main webpage
53+
├── tests/ # Unit tests
54+
├── .gitignore # Git ignore file
55+
├── app.py # Flask application with prediction and drift detection
56+
├── docker-compose.yml # Docker Compose for local development
57+
├── Dockerfile # Docker configuration for app
58+
├── instruction.md # Additional project instructions
59+
├── requirements.txt # Python dependencies
60+
└── setup.py # Project setup script
3661
```
3762

63+
64+
3865
---
3966

4067
## 🛠️ Technologies Used

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ def validate_dropdown(value, mapping, field_name):
120120

121121
if __name__ == '__main__':
122122
port = int(os.environ.get('PORT', 5000))
123-
app.run(debug=True, host='0.0.0.0', port=port) # Set debug=False in production
123+
app.run(debug=True, host='0.0.0.0', port=port)

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ geopy
88
xgboost
99
comet_ml
1010
flask
11-
alibi-detect
11+
alibi-detect
12+
python-dotenv

0 commit comments

Comments
 (0)