A modular AI web application and RESTful microservice built with Python and Flask that combines computer vision, emotion detection, and automated web scraping into a single platform.
- AI Image Captioning: Uses Hugging Face's pre-trained BLIP (
BlipForConditionalGeneration&AutoProcessor) model to generate natural language descriptions from uploaded images. - URL-Based Content Extraction: Automatically scrapes and processes images from external web pages using
BeautifulSoupandPillow. - Emotion & Sentiment Detection: Analyzes input content to classify emotional tone through clean API endpoints.
- Backend & API: Python, Flask, Requests
- AI & Deep Learning: PyTorch, Hugging Face
transformers(BLIP) - Web Scraping & Image Processing: BeautifulSoup4, Pillow
- Configuration:
python-dotenv, Git
- Clone the repository:
git clone https://github.com/Kathambari-Kumar/PolyAPI_AI cd PolyAPI_AI - Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
BLIP (Bootstrapping Language - Image Pretraining) Provided via Hugging Face Transformers. Licensed under the MIT License - free to use, modify, and distribute with attribution.
AutoProcessor & Transformers Library Part of the Hugging Face ecosystem. Licensed under Apache 2.0 - permissive for both research and commercial use.
PyTorch (torch) Deep learning framework powering BLIP. Licensed under BSD-style license.
Other dependencies (Flask, BeautifulSoup, Pillow, Requests, python-dotenv) All are open-source libraries under permissive licenses (BSD, MIT, Apache 2.0).