How shaziyahussain/skin-disease-detection-cnn works
This repository provides a Flask skin-disease classification API: clients submit images, the service preprocesses them for a TensorFlow CNN, and returns a class and confidence. At startup, app.py downloads its serving model from Google Cloud Storage. The README also describes CNN training in Colab, and train.ipynb is present, but its contents were not sampled, so training-to-model relationships are left unverified.
Main entry points: app.py Prediction route · train.ipynb CNN training
Components 11
API
- Flask routes
app.py - Health check
app.py - Prediction route
app.py - Class response
app.py - Cloud Run
Image inference
- Image preprocessing
app.py - CNN inference
app.py
Model operations
- Google Cloud Storage
- Model download and load
app.py - CNN training
train.ipynb
Other components
- API client
Connections 11
- API client → Flask routes: sends request
README.md - Flask routes → Health check: routes GET /
app.py - Flask routes → Prediction route: routes POST /predict
app.py - Prediction route → Image preprocessing: decodes and resizes
app.py - Image preprocessing → CNN inference: provides image array
app.py - Prediction route → CNN inference: calls prediction
app.py - Prediction route → Class response: returns class and confidence
app.py - Model download and load → Google Cloud Storage: downloads model
app.py - Model download and load → CNN inference: loads model
app.py - CNN training → Google Cloud Storage: may supply model
- Cloud Run → Flask routes: hosts API
README.md