How iamdeepakhr/ai-powered-image-analysis-using-python works
Project type and purpose
• NexLens is a lightweight, monolithic full-stack (UI + API integration) web application.
• It provides a Streamlit-based frontend for users to upload images and prompts, and a Python backend that calls Google’s Gemini API to perform AI-powered image analysis.
File structure
• Top level:
• app.py – main Streamlit application driving both the UI and backend logic
• requirements.txt – Python dependencies
• Procfile – deployment entrypoint (e.g., for Heroku/Render)
• .env – runtime environment for storing the GENAI_API_KEY
• README.md, LICENSE, .gitignore – documentation and config
• No separate “frontend” or “backend” folders: app.py handles both.
README for additional insights
• Technology stack: Streamlit (UI), Pillow (in-process image handling), Python, dotenv, Gemini API.
• Features: real-time AI responses, image format support, secure API key management, error handling.