How ahmedelawady8/netflix_movies_recommendation_system works
This is a Streamlit movie-recommendation app. Users choose a title, request recommendations, and see five similar movies with TMDB posters and details; an optional homepage carousel provides clickable images. The notebook is the documented model-building workflow, while app.py loads cached pickle data for runtime recommendations. Frontend Streamlit protocol components are represented as internal layers. Edges reflect calls or exchanges visible in the sampled files or README; the README’s feature description supports the model workflow, but exact notebook implementation details were not inspected.
Main entry points: app.py Streamlit UI · streamlit.ts Streamlit message API · main.py Feature and similarity model · ImageGallery.svelte Image gallery
Components 18
Recommendation app
- Streamlit UI
app.py - Title selection
app.py - Top-five results
app.py - Movie details
app.py - Homepage carousel
app.py
Recommendation model
- TMDB movie dataset
Data/top10K-TMDB-movies.csv - Feature and similarity model
main.py - Cached movie data
movies_list.pkl - Cached similarity matrix
External services
- TMDB API
- TMDB image service
Carousel frontend
- Image gallery
frontend/src/ImageGallery.svelte - Gallery bootstrap
frontend/src/main.ts
Streamlit component protocol
- Streamlit connection wrapper
frontend/src/streamlit/WithStreamlitConnection.svelte - Streamlit message API
frontend/src/streamlit/streamlit.ts - Frame lifecycle
frontend/src/streamlit/setStreamlitLifecycle.ts - Arrow dataframe adapter
frontend/src/streamlit/ArrowTable.ts
Other components
- Movie viewer
Connections 25
- Movie viewer → Streamlit UI: uses
README.md - Streamlit UI → Title selection: renders
app.py - Title selection → Top-five results: selects title
app.py - Streamlit UI → Top-five results: invokes on click
app.py - Top-five results → Cached movie data: reads titles and IDs
app.py - Top-five results → Cached similarity matrix: reads scores
app.py - Top-five results → TMDB image service: fetches posters
app.py - Top-five results → Movie details: renders results
app.py - Movie details → TMDB API: fetches details
app.py - Streamlit UI → TMDB API: fetches carousel posters
app.py - TMDB API → TMDB image service: returns poster path
- TMDB movie dataset → Feature and similarity model: provides source data
README.md - Feature and similarity model → Cached movie data: saves cleaned data
main.py - Feature and similarity model → Cached similarity matrix: saves similarity matrix
main.py - Streamlit UI → Cached movie data: loads pickle
app.py - Streamlit UI → Cached similarity matrix: loads or rebuilds
app.py - Streamlit UI → Homepage carousel: declares component
app.py - Homepage carousel → Gallery bootstrap: loads frontend
- Gallery bootstrap → Streamlit connection wrapper: wraps gallery
frontend/src/main.ts - Gallery bootstrap → Image gallery: mounts component
frontend/src/main.ts - Streamlit connection wrapper → Streamlit message API: receives render events
frontend/src/streamlit/WithStreamlitConnection.svelte - Image gallery → Streamlit message API: sets selected value
frontend/src/ImageGallery.svelte - Image gallery → Frame lifecycle: sets frame lifecycle
frontend/src/ImageGallery.svelte - Frame lifecycle → Streamlit message API: reports frame height
frontend/src/streamlit/setStreamlitLifecycle.ts - Streamlit message API → Arrow dataframe adapter: converts dataframe args
frontend/src/streamlit/streamlit.ts