Neylton commited on
Commit
cf48454
Β·
verified Β·
1 Parent(s): 123e837

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +134 -20
README.md CHANGED
@@ -1,20 +1,134 @@
1
- ---
2
- title: AcceptIN
3
- emoji: πŸš€
4
- colorFrom: red
5
- colorTo: red
6
- sdk: docker
7
- app_port: 8501
8
- tags:
9
- - streamlit
10
- pinned: false
11
- short_description: AI-Powered Telecom Site Quality Inspector
12
- license: mit
13
- ---
14
-
15
- # Welcome to Streamlit!
16
-
17
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
18
-
19
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
20
- forums](https://discuss.streamlit.io).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: ACCEPTIN - Telecom Site Quality Classification
3
+ emoji: πŸ“‘
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.**