An AI-powered image analysis tool that generates detailed alt text, contextual information, and sentiment analysis for images using multiple AI models.
- 🖼️ Image Upload & Processing with drag-and-drop support
- 🤖 AI-Powered Alt Text Generation
- 📝 Enhanced Context Generation
- 🎭 Sentiment Analysis with emotional elements
- 🔄 Multiple AI Model Support (OpenAI, Gemini, Hugging Face)
- 🎨 Modern, Responsive UI with styled-components
-
Prepare Frontend
cd frontend npm run build # Test build locally first
-
Install Vercel CLI
npm install -g vercel
-
Deploy to Vercel
vercel login vercel
Or deploy through Vercel Dashboard:
-
Push your code to GitHub
-
Import your repository in Vercel Dashboard
-
Configure build settings:
Build Command: npm run build Output Directory: .next Install Command: npm install -
Add environment variables:
NEXT_PUBLIC_API_URL=https://your-backend-url.vercel.app
-
-
Prepare Backend
- Create
vercel.jsonin backend directory:
{ "version": 2, "builds": [ { "src": "run.py", "use": "@vercel/python" } ], "routes": [ { "src": "/(.*)", "dest": "run.py" } ] }- Create
requirements.txt:
cd backend pipenv lock -r > requirements.txt
- Create
-
Deploy Backend
vercel
Or through Vercel Dashboard:
- Import your backend repository
- Configure build settings:
Build Command: pip install -r requirements.txt Output Directory: . Install Command: python run.py - Add environment variables:
HUGGINGFACE_API_KEY=your_key OPENAI_API_KEY=your_key GEMINI_API_KEY=your_key
-
Update Frontend API URL
- Get your backend deployment URL from Vercel
- Update frontend environment variable:
NEXT_PUBLIC_API_URL=https://your-backend-url.vercel.app -
Configure CORS
- Update backend CORS settings in
app/__init__.py:
CORS(app, resources={ r"/api/*": { "origins": ["https://your-frontend-url.vercel.app"], "methods": ["GET", "POST", "OPTIONS"] } })
- Update backend CORS settings in
-
Verify Deployment
- Test frontend:
https://your-frontend-url.vercel.app - Test backend:
https://your-backend-url.vercel.app/api/test
- Test frontend:
-
Backend Issues
- Check Vercel logs for Python errors
- Verify environment variables are set
- Test API endpoints using Postman
-
Frontend Issues
- Check build logs in Vercel dashboard
- Verify API URL is correct
- Check browser console for CORS errors
-
Common Solutions
- Redeploy after environment variable changes
- Clear Vercel cache if needed
- Check function execution timeout limits