I've built a Chrome Extension that allows you to copy-past a job description, and it returns you a summary of that job description. This is the first iteration of the application (I'm still learning how to build a chrome extension). The job description is fed into a GPT-3 model by OpenAI using a simple prompt, almost similar to how you'd interact with ChatGPT. I'm making this public in case anybody wants to re-create this application and use it in their job search.
In order to re-create and use the extension (I'll assume you are familiar with the command line), follow the steps below:
- Clone the repository in your local machine:
git clone https://github.com/farhan0167/job-desc-summarizer.git
- There are two directories, my-app and backend.
- Go to the
backend
directory and spin the flask server:- CD into the directory
cd backend
- Install a virtual environment
python3 -m venv venv
- Activate the venv:
source vevn/bin/activate
- Install all the dependencies:
pip install -r requirements.txt
- Before you spin up your flask server, go to OpenAI API to create an account
- Create an account here
- Once you created an account, navigate to their API key. I'll assume that you don't have an account with them yet because it will enable you to get $18 in free credits. You can access your keys by clicking on the right-most corner of the screen where you see your name or org > View API Key. Click "+ Create new secret key". Copy your secret key and navigate to the .env file the repo you cloned earlier in
job-desc-summarizer/backend/.env
. Within the .env file, paste your secret key afterOPENAI_API_SECRET_KEY=
by replacingreplace-with-your-key
with your key.
- Now spin up your flask server:
python3 app.py
- CD into the directory
- Now we'll create a Chrome Extension. Simply go to the my-app directory and run the following:
- CD into the my-app directory in a new terminal window:
cd job-desc-summarizer/my-app
- Install npm dependencies(make sure to have node installed in your system):
npm install
- Build the project:
You'll notice it creates a new build folder.
npm run build
- Open Google Chrome and navigate to the extensions tab > Enable Developer Tools. You can click on settings and find Extensions on the left nav pane towards the bottom
- Select Load Unpacked, and select the build folder that was created earlier. And you are all set to use the extension.
- CD into the my-app directory in a new terminal window: