Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,25 +1,92 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
This project deploys a predictive maintenance model using Streamlit on Hugging Face Spaces.
|
| 5 |
|
| 6 |
-
##
|
| 7 |
-
|
| 8 |
-
- Accepts sensor inputs from users
|
| 9 |
-
- Converts inputs to a pandas DataFrame
|
| 10 |
-
- Predicts engine condition
|
| 11 |
-
- Automated CI/CD using GitHub Actions
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
[add your link]
|
| 18 |
|
| 19 |
-
##
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Predictive Maintenance App
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
|
| 11 |
+
# π Predictive Maintenance System
|
|
|
|
| 12 |
|
| 13 |
+
## π Overview
|
| 14 |
+
This project deploys a **machine learningβbased predictive maintenance system** that predicts engine condition using real-time sensor inputs.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
The application is built using:
|
| 17 |
+
- **Streamlit** (UI)
|
| 18 |
+
- **Docker** (deployment environment)
|
| 19 |
+
- **Hugging Face Spaces** (hosting)
|
| 20 |
+
- **Hugging Face Model Hub** (model storage)
|
| 21 |
+
- **GitHub Actions** (CI/CD automation)
|
| 22 |
|
| 23 |
+
---
|
|
|
|
| 24 |
|
| 25 |
+
## π― Objective
|
| 26 |
+
The goal of this project is to:
|
| 27 |
+
- Predict potential engine failures
|
| 28 |
+
- Enable proactive maintenance
|
| 29 |
+
- Reduce downtime and operational costs
|
| 30 |
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## βοΈ Features
|
| 34 |
+
|
| 35 |
+
- β
User-friendly Streamlit interface
|
| 36 |
+
- β
Real-time prediction from sensor inputs
|
| 37 |
+
- β
Model loaded dynamically from Hugging Face Model Hub
|
| 38 |
+
- β
Automated deployment via GitHub Actions
|
| 39 |
+
- β
Dockerized environment for consistent execution
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## π§ Model Details
|
| 44 |
+
|
| 45 |
+
- **Model Type:** Ensemble (Random Forest / Boosting)
|
| 46 |
+
- **Input Features:**
|
| 47 |
+
- Engine RPM
|
| 48 |
+
- Coolant Temperature
|
| 49 |
+
- Oil Pressure
|
| 50 |
+
- Fuel Pressure
|
| 51 |
+
- Intake Temperature
|
| 52 |
+
- Battery Voltage
|
| 53 |
+
|
| 54 |
+
- **Target:**
|
| 55 |
+
- Engine Condition (Healthy / Fault Risk)
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## π How It Works
|
| 60 |
+
|
| 61 |
+
1. User inputs sensor values via the UI
|
| 62 |
+
2. Inputs are converted into a pandas DataFrame
|
| 63 |
+
3. Preprocessing pipeline is applied:
|
| 64 |
+
- Validation
|
| 65 |
+
- Missing value handling
|
| 66 |
+
- Feature engineering
|
| 67 |
+
4. Model is loaded from Hugging Face Model Hub
|
| 68 |
+
5. Prediction is generated and displayed
|
| 69 |
+
|
| 70 |
+
---
|
| 71 |
+
|
| 72 |
+
## ποΈ Project Structure
|
| 73 |
+
|
| 74 |
+
```text
|
| 75 |
+
.
|
| 76 |
+
βββ app.py
|
| 77 |
+
βββ Dockerfile
|
| 78 |
+
βββ requirements.txt
|
| 79 |
+
βββ README.md
|
| 80 |
+
βββ push_to_hf_space.py
|
| 81 |
+
β
|
| 82 |
+
βββ config/
|
| 83 |
+
β βββ config.yaml
|
| 84 |
+
β
|
| 85 |
+
βββ src/
|
| 86 |
+
β βββ predict.py
|
| 87 |
+
β βββ preprocess.py
|
| 88 |
+
β βββ utils.py
|
| 89 |
+
β
|
| 90 |
+
βββ .github/
|
| 91 |
+
βββ workflows/
|
| 92 |
+
βββ pipeline.yml
|