How rohan271004/skin-disease-prediction-cnn works
This is a full-stack skin-disease image classifier. A user selects an image in the React interface, which submits it to a Django prediction endpoint; the interface then presents a result. The README describes CNN inference, but backend views and model-training code were not sampled, and the tree does not show a trained model file. Accordingly, backend inference connections are marked unverified rather than presenting an assumed internal pipeline.
Main entry points: views.py Prediction handler · Disease.jsx Image upload · App.jsx React app routes · urls.py API endpoints
Components 9
User interface
- React app routes
frontend/cnn/src/App.jsx - Image upload
frontend/cnn/src/components/Disease.jsx - Prediction result
frontend/cnn/src/components/Result.jsx
Django backend
- API routing
backend/skin_disease_backend/urls.py - API endpoints
backend/api/urls.py - Prediction handler
backend/api/views.py
Classification
- CNN classifier
- Model training
backend/train_model.py
Other components
- Image submitter
Connections 9
- Image submitter → Image upload: selects image
frontend/cnn/src/components/Disease.jsx - React app routes → Image upload: routes to
frontend/cnn/src/App.jsx - React app routes → Prediction result: routes to
frontend/cnn/src/App.jsx - Image upload → Prediction handler: posts image
frontend/cnn/src/components/Disease.jsx - Prediction handler → Image upload: returns prediction
- API routing → API endpoints: includes routes
backend/skin_disease_backend/urls.py - API endpoints → Prediction handler: dispatches to
- Prediction handler → CNN classifier: runs inference
- Model training → CNN classifier: trains model