How aps31012005-prog/task15_end_to_end_deep_learning works
Users upload an image in the Streamlit interface, which previews it and, on request, sends it to Flask. Flask validates and preprocesses the image, runs the CIFAR-10 model, maps the highest-scoring class to a label, and returns class and confidence for display. The README also documents Docker Compose, Kubernetes, and Render deployment options. Deployment relationships below follow README descriptions; source excerpts show the application request and inference flow, but not deployment configuration contents.
Main entry points: flask_api.py Flask API · app.py Streamlit UI · docker-compose.yml Docker Compose · flask-deployment.yaml Flask Kubernetes deployment
Components 14
User interface
- Streamlit UI
app.py
Prediction service
- Flask API
flask_api.py - Image preprocessing
flask_api.py - CIFAR-10 CNN
model/cifar10_cnn.keras - Class and confidence
flask_api.py
Deployment
- Docker Compose
docker-compose.yml - Flask container
Dockerfile.flask - Streamlit container
Dockerfile.streamlit - Flask Kubernetes service
kubernetes/flask-service.yaml - Flask Kubernetes deployment
kubernetes/flask-deployment.yaml - Streamlit Kubernetes service
kubernetes/streamlit-service.yaml - Streamlit Kubernetes deployment
kubernetes/streamlit-deployment.yaml - Render hosting
Other components
- User
Connections 12
- User → Streamlit UI: uploads image
README.md - Streamlit UI → Flask API: POSTs image
app.py - Flask API → Image preprocessing: preprocesses image
flask_api.py - Flask API → CIFAR-10 CNN: runs prediction
flask_api.py - Flask API → Class and confidence: maps scores
flask_api.py - Flask API → Streamlit UI: returns result
README.md - Docker Compose → Flask container: runs service
README.md - Docker Compose → Streamlit container: runs service
README.md - Flask Kubernetes deployment → Flask Kubernetes service: exposes pods
README.md - Streamlit Kubernetes deployment → Streamlit Kubernetes service: exposes pods
README.md - Render hosting → Streamlit UI: hosts frontend
README.md - Render hosting → Flask API: hosts API
README.md