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|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: 1.31.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# π‘ ACCEPTIN - Telecom Site Quality Classification
|
| 14 |
+
|
| 15 |
+
AI-powered telecom site inspection using ConvNeXt transfer learning.
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
## π Deploying ACCEPTIN on Hugging Face Spaces
|
| 20 |
+
|
| 21 |
+
### 1. Prepare Your Project Directory
|
| 22 |
+
|
| 23 |
+
Ensure your project has the following structure:
|
| 24 |
+
```
|
| 25 |
+
ACCEPTIN/
|
| 26 |
+
βββ app.py
|
| 27 |
+
βββ requirements.txt
|
| 28 |
+
βββ README.md
|
| 29 |
+
βββ models/
|
| 30 |
+
β βββ telecom_classifier.pth
|
| 31 |
+
βββ utils/
|
| 32 |
+
β βββ data_utils.py
|
| 33 |
+
β βββ model_utils.py
|
| 34 |
+
βββ ... (other files)
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
### 2. Create a New Space on Hugging Face
|
| 38 |
+
1. Go to [Hugging Face Spaces](https://huggingface.co/spaces).
|
| 39 |
+
2. Click **Create new Space**.
|
| 40 |
+
3. Fill in:
|
| 41 |
+
- **Space name**: acceptin (or your choice)
|
| 42 |
+
- **SDK**: Streamlit
|
| 43 |
+
- **Hardware**: CPU basic (free)
|
| 44 |
+
- **Visibility**: Public or Private
|
| 45 |
+
4. Click **Create Space**.
|
| 46 |
+
|
| 47 |
+
### 3. Prepare Your Files
|
| 48 |
+
- **requirements.txt**: List all dependencies (see below for example).
|
| 49 |
+
- **README.md**: This file, with the YAML header above.
|
| 50 |
+
- **Model File**: Place `telecom_classifier.pth` in a `models/` folder. If >10MB, use Git LFS.
|
| 51 |
+
|
| 52 |
+
#### Example requirements.txt
|
| 53 |
+
```
|
| 54 |
+
streamlit==1.31.0
|
| 55 |
+
torch==2.2.0
|
| 56 |
+
torchvision==0.17.0
|
| 57 |
+
Pillow==10.2.0
|
| 58 |
+
numpy==1.26.0
|
| 59 |
+
timm==0.9.12
|
| 60 |
+
opencv-python-headless==4.8.1.78
|
| 61 |
+
plotly==5.18.0
|
| 62 |
+
pandas==2.2.0
|
| 63 |
+
scikit-learn==1.4.0
|
| 64 |
+
matplotlib==3.8.0
|
| 65 |
+
seaborn==0.13.0
|
| 66 |
+
tqdm==4.66.0
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
### 4. (If Needed) Set Up Git LFS for Large Files
|
| 70 |
+
If your model file is large:
|
| 71 |
+
```bash
|
| 72 |
+
git lfs install
|
| 73 |
+
git lfs track "*.pth"
|
| 74 |
+
git add .gitattributes
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
### 5. Upload Your Files to the Space
|
| 78 |
+
**A. Web Interface**
|
| 79 |
+
- Go to your Space on Hugging Face.
|
| 80 |
+
- Click the **Files** tab.
|
| 81 |
+
- Upload all files and folders (`app.py`, `requirements.txt`, `README.md`, `models/`, `utils/`, etc.).
|
| 82 |
+
|
| 83 |
+
**B. Git Method (Recommended)**
|
| 84 |
+
```bash
|
| 85 |
+
git clone https://huggingface.co/spaces/YOUR_USERNAME/acceptin
|
| 86 |
+
cd acceptin
|
| 87 |
+
# Copy your files into this directory
|
| 88 |
+
# If using Git LFS:
|
| 89 |
+
git lfs install
|
| 90 |
+
git lfs track "*.pth"
|
| 91 |
+
git add .gitattributes
|
| 92 |
+
git add .
|
| 93 |
+
git commit -m "Initial ACCEPTIN deployment"
|
| 94 |
+
git push
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
### 6. Wait for Build & Test
|
| 98 |
+
- Hugging Face will automatically build your Space.
|
| 99 |
+
- Wait for the build to finish (watch the logs for errors).
|
| 100 |
+
- Test your app in the browser.
|
| 101 |
+
|
| 102 |
+
### 7. Troubleshooting
|
| 103 |
+
- If you see errors, check the build logs.
|
| 104 |
+
- Make sure all dependencies are in `requirements.txt`.
|
| 105 |
+
- Ensure your model path in `app.py` matches the uploaded file location.
|
| 106 |
+
|
| 107 |
+
### 8. Share Your Space
|
| 108 |
+
- Once working, share your Space URL (e.g., `https://huggingface.co/spaces/YOUR_USERNAME/acceptin`).
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## ποΈ Technical Overview
|
| 113 |
+
- **Model**: ConvNeXt Large (197M parameters, transfer learning from food detection)
|
| 114 |
+
- **Task**: Binary classification (good/bad telecom site)
|
| 115 |
+
- **App**: Streamlit web interface
|
| 116 |
+
- **Data**: Images of telecom sites, labeled as good or bad
|
| 117 |
+
- **Deployment**: Hugging Face Spaces (Streamlit SDK)
|
| 118 |
+
|
| 119 |
+
## π Features
|
| 120 |
+
- Upload telecom site images for instant quality assessment
|
| 121 |
+
- Visual confidence scores and inspection breakdown
|
| 122 |
+
- Modern, responsive UI
|
| 123 |
+
|
| 124 |
+
## π Model Performance
|
| 125 |
+
- **Validation Accuracy**: ~94%
|
| 126 |
+
- **Model Size**: ~750MB
|
| 127 |
+
|
| 128 |
+
## π Data Requirements
|
| 129 |
+
- Images of telecom sites (good/bad)
|
| 130 |
+
- Recommended: 100+ images per class
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
|
| 134 |
+
**For more details, see the in-app documentation or contact the author.**
|