Watch the video demo here
Follow these instructions in order to locally launch the website using VSCode:
-
Clone this repository using the git clone command
-
Before running the code, create the following empty folders in the project directory
..\RoleFitAI\
.
- job_description_final
- job_description_upload
- uploads
An overview of the project's directory structure:
RoleFitAI/
: project main directoryjdResume
: python filespublic
: HTML, CSS, and Javascript filesjob_description_final
: will contain the final job descriptionjob_description_upload
: will contain all the uploaded job descriptionsuploads
: will contain all the uploaded resumesREADME.md
: Getting started guide.How To Setup MySQL.docx
: instructions for setting up MySQL in VSCodeRoleFitAI_presentation.pptx
: a presentation on the project
- Install the required Node.js libraries using the following command:
npm install express body-parser mysql2 path multer nodemailer
-
To set up MySQL in VSCode follow this guide
-
Install Python Libraries:
git clone https://huggingface.co/ml6team/keyphrase-extraction-kbir-inspec
git clone https://huggingface.co/sentence-transformers/bert-base-nli-mean-tokens
git clone https://huggingface.co/sentence-transformers/all-mpnet-base-v2
pip install transformers sentence_transformers fpdf PyPDF2 pytesseract pypdfium2 docxpy gpt4all
-
After successfully installing pytesseract, you can find the folder containing all the contents of the pytesseract library in the Python installation directory.
A common path where you might find the "site-packages" directory:
C:\Users\<YourUsername>\AppData\Local\Programs\Python\<PythonVersion>\Lib\site-packages
Rename the folder containing the pytesseract library contents to "tesseract-ocr" and then copy it into the sub-directory 'RoleFitAI/jdResume' within the project.
- Change the following var paths in main.py wrt to your project directory location:
extractor_model_dir = "path-to-dir-RoleFitAI\\jdResume\\keyphrase-extraction-kbir-inspec"
st_model_dir = "path-to-dir-RoleFitAI\\jdResume\\bert-base-nli-mean-tokens"
pytesseract.pytesseract.tesseract_cmd = r"path-to-dir-RoleFitAI\\jdResume\\tesseract-ocr\\tesseract.exe"
jd="path-to-dir-RoleFitAI\\job_description_final\\jd.pdf"
- Change the following variable paths in jtjd.py wrt to your project directory location:
pytesseract.pytesseract.tesseract_cmd = r"path-to-dir-RoleFitAI\\jdResume\\tesseract-ocr\\tesseract.exe"
st_model_dir = "path-to-dir-RoleFitAI\\jdResume\\all-mpnet-base-v2"
If you wish to utilize it, uncomment the GPT-4-All code in jtjd.py.
- To open the homepage in your local browser at
http://localhost:5500/
, execute the following command in the VSCode terminal:
node server.js