How jagadeesh-boyalla-03/ai-powered-social-caption-generator works
This repository provides image- and video-to-caption tools, centered on a FastAPI web application that accepts media and caption preferences, analyzes the media, and returns platform-specific captions. It also includes CLI and Streamlit captioning clients, earlier BLIP-based image-captioning examples, and a separate CLIP/FAISS text-to-image search workflow. Edges reflect calls and data flows visible in excerpts or README statements; the browser-to-API link is dashed because the frontend source was not sampled.
Main entry points: index.py Caption API · index.html Web UI · 6_social_media_captions.py Caption CLI · 7_streamlit_social_demo.py Social demo
Components 16
Web captioning
- Web UI
index.html - Caption API
api/index.py - Media analysis
api/index.py - Caption generation
api/index.py - Platform rules
api/index.py
Captioning clients
- Caption CLI
6_social_media_captions.py - Social demo
7_streamlit_social_demo.py
Image search
- Build image index
2_build_search_index.py - FAISS image index
- Text image search
3_search_images.py
BLIP examples
- BLIP caption API
4_api_server.py - BLIP demo
5_streamlit_demo.py - BLIP image captioning
1_caption_image.py
Other components
- User
- Google Gemini
- BLIP model
Connections 22
- User → Web UI: uses
README.md - Web UI → Caption API: submits media
- Caption API → Web UI: serves page
api/index.py - Caption API → Media analysis: analyzes media
api/index.py - Media analysis → Google Gemini: describes media
api/index.py - Caption API → Caption generation: generates captions
api/index.py - Caption generation → Google Gemini: requests captions
api/index.py - Caption generation → Platform rules: applies limits
api/index.py - User → Caption CLI: runs
6_social_media_captions.py - Caption CLI → Google Gemini: requests descriptions and captions
6_social_media_captions.py - User → Social demo: uses
7_streamlit_social_demo.py - Social demo → Google Gemini: requests descriptions and captions
7_streamlit_social_demo.py - User → BLIP caption API: uploads image
4_api_server.py - BLIP caption API → BLIP model: generates caption
4_api_server.py - User → BLIP demo: uses
5_streamlit_demo.py - BLIP demo → BLIP model: generates caption
5_streamlit_demo.py - User → BLIP image captioning: runs
1_caption_image.py - BLIP image captioning → BLIP model: generates caption
1_caption_image.py - User → Build image index: provides image folder
2_build_search_index.py - Build image index → FAISS image index: writes index and paths
2_build_search_index.py - User → Text image search: provides text query
3_search_images.py - Text image search → FAISS image index: reads index and paths
3_search_images.py