How thansiyaraja-2003/pocketsmart-ai works
PocketSmart AI is a FastAPI web app for generating AI-assisted home, party, and jewelry plans. Users submit planner forms; app.py prepares inputs, calls the corresponding recommendation function, and renders a results template. Jewelry planning can also pass an uploaded outfit image. The excerpts establish these routes and the service dependency, but do not show all service internals or template behavior; unsampled pages such as history and dashboard are represented only as rendered views.
Main entry points: app.py FastAPI routes · gemini_service.py Gemini recommendation service · index.html Landing and account pages · dashboard.html Dashboard
Components 14
Web interface
- FastAPI routes
app.py - Landing and account pages
templates/index.html - Dashboard
templates/dashboard.html - History page
templates/history.html - Testimonials
templates/testimonials.html
Planning workflows
- Home planner form
templates/home_planner.html - Home recommendations
templates/home_recommendations.html - Party planner form
templates/party_planner.html - Party recommendations
templates/party_recommendations.html - Jewelry planner form
templates/jewelry_planner.html - Jewelry recommendations
templates/jewelry_recommendations.html
Recommendation engine
- Gemini recommendation service
services/gemini_service.py
Other components
- Visitor
- Google Gemini API
Connections 15
- Visitor → FastAPI routes: submits requests
app.py - FastAPI routes → Landing and account pages: renders pages
app.py - FastAPI routes → Dashboard: renders dashboard
app.py - FastAPI routes → History page: renders history
app.py - FastAPI routes → Testimonials: renders testimonials
app.py - FastAPI routes → Home planner form: renders form
app.py - FastAPI routes → Home recommendations: renders results
app.py - FastAPI routes → Party planner form: renders form
app.py - FastAPI routes → Party recommendations: renders results
app.py - FastAPI routes → Jewelry planner form: renders form
app.py - FastAPI routes → Jewelry recommendations: renders results
app.py - FastAPI routes → Gemini recommendation service: requests home plan
app.py - FastAPI routes → Gemini recommendation service: requests party plan
app.py - FastAPI routes → Gemini recommendation service: requests jewelry plan
app.py - Gemini recommendation service → Google Gemini API: generates recommendations