How ajaygupta005/nlp-app-api-and-flask-project works
This is a Flask web app for user registration and login plus three text-analysis features: named-entity recognition, sentiment analysis, and summarization. Users submit requests through the app; protected profile and analysis routes use session state, and analysis handlers call Hugging Face inference endpoints before rendering results. The app delegates account checks and writes to a MySQL-backed database layer. The README is empty and template contents were not sampled, so the graph shows documented route and render relationships without assuming template details.
Main entry points: app.py Flask routes · profile.html Profile view · db.py Database access · login.html Login view
Components 15
Web app
- Flask routes
app.py - Registration and login
app.py - Protected profile
app.py - Login view
templates/login.html - Registration view
templates/register.html - Profile view
templates/profile.html
Text analysis
- Entity recognition
app.py - Sentiment analysis
app.py - Text summarization
app.py - NER inference API
- Sentiment inference API
- Summarization inference API
Account data
- Database access
db.py - MySQL database
Other components
- User
Connections 17
- User → Flask routes: sends requests
- Flask routes → Login view: renders
- Flask routes → Registration view: renders
- Registration and login → Database access: checks and writes
- Database access → MySQL database: queries and updates
- Flask routes → Registration and login: dispatches
- Flask routes → Protected profile: dispatches
- Protected profile → Profile view: renders
- Flask routes → Entity recognition: dispatches
- Flask routes → Sentiment analysis: dispatches
- Flask routes → Text summarization: dispatches
- Entity recognition → NER inference API: sends text
- Sentiment analysis → Sentiment inference API: sends text
- Text summarization → Summarization inference API: sends text
- Entity recognition → Profile view: renders results
- Sentiment analysis → Profile view: renders results
- Text summarization → Profile view: renders results