This repository contains the code for the AI Cover Letter Generator, a tool designed to help users generate personalized cover letters based on their resume and job description inputs. The project utilizes Mistral Nemo LLM, the Streamlit framework, and Hugging Face Inference API to provide an efficient and intelligent solution for creating cover letters.
- Personalized Cover Letters: Generate tailored cover letters by providing resume details and job descriptions.
- AI-Powered (Mistral Nemo LLM): Leverages the Mistral Nemo large language model (LLM) for intelligent, context-aware generation of unique cover letters.
- Hugging Face Integration: Uses the Hugging Face Inference API to connect with the LLM, ensuring fast and accurate results.
- User-Friendly Interface (Streamlit): Built with Streamlit, providing a clean and interactive interface for inputting information and generating cover letters.
- Fast & Efficient: Generates results in seconds, saving you time in your job application process.
- File Support (DOCX & PDF): Utilizes
docx2txt
for extracting text from DOCX files andpypdf
for handling PDF files, allowing seamless input from a variety of file formats.
The cover letter generator app is deployed in one of my Hugging Face Spaces and can be accessed through this link:
AI Cover Letter Generator - Hugging Face
-
Clone the repository:
git clone https://github.com/omar-arif/ai-cover-letter-generator.git
-
Navigate into the project directory:
cd ai-cover-letter-generator
-
Install dependencies:
pip install -r requirements.txt
-
Set up your Hugging Face Token:
- Create an account on Hugging Face.
- Go to your Hugging Face settings and create an API token.
- Set the
HF_TOKEN
environment variable to the token value:export HF_TOKEN=your_huggingface_token
-
Run the app:
streamlit run app.py
- Python 3.7+
- Required packages are listed in
requirements.txt
. - Hugging Face API token.
This project is licensed under the Apache 2.0 License. See the LICENSE file for more details.