A Python Flask web application that provides AI-powered career guidance by analyzing CVs and career goals.
- A Render account (free at render.com)
- OpenAI API key
-
Fork/Clone this repository to your GitHub account
-
Create a new Web Service on Render:
- Go to Render Dashboard
- Click "New" → "Web Service"
- Connect your GitHub repository
-
Configure the service:
- Name:
career-guide-ai(or your preferred name) - Environment:
Python 3 - Build Command:
pip install -r requirements.txt - Start Command:
gunicorn --bind 0.0.0.0:$PORT app:app
- Name:
-
Set Environment Variables:
OPENAI_API_KEY: Your OpenAI API keySECRET_KEY: A secure random string (Render can auto-generate this)
-
Deploy:
- Click "Create Web Service"
- Render will automatically build and deploy your app
| Variable | Description | Required |
|---|---|---|
OPENAI_API_KEY |
Your OpenAI API key | Yes |
SECRET_KEY |
Flask secret key for sessions | Yes |
PORT |
Port number (auto-set by Render) | Auto |
-
Install dependencies: ```bash pip install -r requirements.txt ```
-
Set environment variables: ```bash export OPENAI_API_KEY=your_api_key_here export SECRET_KEY=your_secret_key_here ```
-
Run the app: ```bash python app.py ```
- Upload PDF CVs
- Input career goals
- AI-powered career analysis using OpenAI
- Download career guidance reports
- Responsive web interface
- Production-ready logging
- Health check endpoint
``` career-guidance-app/ ├── app.py # Main Flask application ├── requirements.txt # Python dependencies ├── Procfile # Process file for deployment ├── render.yaml # Render configuration ├── runtime.txt # Python version specification ├── templates/ # HTML templates │ ├── base.html │ ├── index.html │ ├── upload.html │ └── results.html └── README.md ```
GET /- Home pageGET /upload- Upload formPOST /analyze- Process CV and career goalsGET /results- Display analysis resultsGET /download-report- Download text reportGET /health- Health check endpoint
- Gunicorn WSGI server
- Environment-based configuration
- Structured logging
- Error handling with fallback responses
- Health check endpoint
- Secure session management
- Build fails: Check requirements.txt for correct package versions
- App won't start: Verify environment variables are set
- OpenAI errors: Check API key validity and quota
- File upload issues: Ensure PDF files are under 16MB
View logs in Render dashboard under "Logs" tab for debugging.