Bhavi23 commited on
Commit
ab07a78
·
verified ·
1 Parent(s): aa059da

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -63
README.md CHANGED
@@ -1,73 +1,28 @@
 
 
 
 
 
 
 
 
 
 
1
 
2
- title: Satellite Classification Dashboardemoji: 🛰️colorFrom: bluecolorTo: purplesdk: gradiosdk_version: 5.0.2app_file: app.pypinned: false
3
  🛰️ Satellite Classification Dashboard
 
4
  A Gradio-based application for classifying satellite images using pre-trained deep learning models. Upload a PNG, JPG, or JPEG image, select one or more models (Custom CNN, MobileNetV2, EfficientNetB0, DenseNet121), and view predictions with confidence scores and visualizations.
5
- Quick Start
 
6
 
7
  Try the Live Demo: Visit https://huggingface.co/spaces/your-username/Satellite-Classification-Gradio.
8
- Local Setup:git clone https://huggingface.co/spaces/your-username/Satellite-Classification-Gradio
 
 
 
 
9
  cd Satellite-Classification-Gradio
10
  python -m venv venv
11
  source venv/bin/activate # On Windows: venv\Scripts\activate
12
  pip install -r requirements.txt
13
  python app.py
14
-
15
- Open http://localhost:7860 in your browser.
16
-
17
- Dependencies
18
- Listed in requirements.txt:
19
-
20
- gradio==5.0.2
21
- tensorflow-cpu==2.15.0
22
- numpy==1.26.4
23
- pandas==2.2.2
24
- plotly==5.22.0
25
- Pillow==10.4.0
26
- requests==2.32.3
27
- protobuf==3.20.3
28
-
29
- Troubleshooting
30
- Missing configuration in README
31
-
32
- Cause: The README.md lacks the required YAML front matter.
33
- Fix:
34
- Ensure this README.md is saved in the repository root with exact filename README.md.
35
- Verify YAML syntax (no extra spaces, correct indentation).
36
- Push to repository:git add README.md
37
- git commit -m "Add YAML front matter to README.md"
38
- git push
39
-
40
-
41
- Restart the Space in the Settings tab.
42
-
43
-
44
-
45
- ModuleNotFoundError: No module named 'tensorflow'
46
-
47
- Cause: TensorFlow failed to install during the build.
48
- Fix:
49
- Verify requirements.txt includes tensorflow-cpu==2.15.0 and protobuf==3.20.3.
50
- Check build logs in the Space’s Settings tab.
51
- Test locally:python -m venv venv
52
- source venv/bin/activate
53
- pip install -r requirements.txt
54
- python app.py
55
-
56
-
57
- If unresolved, add a Dockerfile:FROM python:3.9-slim
58
- WORKDIR /app
59
- COPY requirements.txt .
60
- RUN pip install --no-cache-dir -r requirements.txt
61
- COPY . .
62
- EXPOSE 7860
63
- CMD ["python", "app.py"]
64
-
65
-
66
- Switch the Space’s SDK to Docker and push the Dockerfile.
67
-
68
-
69
-
70
- Support
71
-
72
- Issues: Hugging Face Discussions
73
- Email: bhavithrass@gmail.com
 
1
+ ---
2
+ title: "Satellite Classification Dashboard"
3
+ emoji: "🛰️"
4
+ colorFrom: "blue"
5
+ colorTo: "purple"
6
+ sdk: "gradio"
7
+ sdk_version: "5.0.2"
8
+ app_file: "app.py"
9
+ pinned: false
10
+ ---
11
 
 
12
  🛰️ Satellite Classification Dashboard
13
+
14
  A Gradio-based application for classifying satellite images using pre-trained deep learning models. Upload a PNG, JPG, or JPEG image, select one or more models (Custom CNN, MobileNetV2, EfficientNetB0, DenseNet121), and view predictions with confidence scores and visualizations.
15
+
16
+ ## Quick Start
17
 
18
  Try the Live Demo: Visit https://huggingface.co/spaces/your-username/Satellite-Classification-Gradio.
19
+
20
+ ### Local Setup
21
+
22
+ ```bash
23
+ git clone https://huggingface.co/spaces/your-username/Satellite-Classification-Gradio
24
  cd Satellite-Classification-Gradio
25
  python -m venv venv
26
  source venv/bin/activate # On Windows: venv\Scripts\activate
27
  pip install -r requirements.txt
28
  python app.py