File size: 3,271 Bytes
032b46f
 
2a82d93
032b46f
 
 
 
bdc0835
032b46f
 
 
 
 
ce65365
 
0c69df9
 
 
ce65365
 
 
0c69df9
 
bc990c5
0c69df9
ce65365
6013462
ce65365
0c69df9
bc990c5
772afc4
bc990c5
ce65365
0c69df9
 
 
 
 
ce65365
 
772afc4
ce65365
6013462
ce65365
f516b81
 
 
 
 
 
 
 
 
ce65365
 
 
0c69df9
 
 
ce65365
0c69df9
 
 
 
 
891d273
0c69df9
8896d62
0c69df9
8896d62
0c69df9
 
 
ce65365
0c69df9
 
 
ce65365
0c69df9
 
096cc51
0c69df9
 
 
 
 
 
 
 
 
 
 
 
bc990c5
0c69df9
 
 
 
 
 
 
 
 
 
bc990c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
title: CoverPilot
emoji: 🎩📨
colorFrom: blue
colorTo: gray
sdk: gradio
sdk_version: 4.24.0
app_file: "app/app.py"
pinned: false
license: mit
short_description: AI-Powered Cover Letter Generator
---

---

<div align="center">
  <div>&nbsp;</div>

<div>&nbsp;</div>

  <img src="asset/banner.png" width="400"/> 


🎩 **CoverPilot** is an AI-powered cover letter generator. It helps you focus on what matters most - getting the job.

[Watch process in action](#demo) |
[How it can help](#mechanism) |
[Deploy your own](#setup)

![sync_to_HF](https://github.com/cxumol/CoverPilot/actions/workflows/hf_sync.yml/badge.svg) |
[![Hugging Face](https://img.shields.io/badge/App%20Hosted%20on-%F0%9F%A4%97%20Hugging%20Face-blue)](https://huggingface.co/spaces/cxumol/CoverPilot)

</div>

## Demo

<video src="asset/CoverPilot_demo_h264_30fps_noaudio.mp4"></video>

https://github.com/cxumol/CoverPilot/assets/8279655/fe66bc9a-8d05-4f69-b3f5-b48f66464993

- Try it on Hugging Face now! [![Hugging Face](https://img.shields.io/badge/App%20Hosted%20on-%F0%9F%A4%97%20Hugging%20Face-blue)](https://huggingface.co/spaces/cxumol/CoverPilot)

## Mechanism

With powerful Prompt Engineering, CoverPilot can deeply understand your resume and the job description, and find the best writing style to match your experience with the job. 

In CoverPilot, we hire two AI agents cooperatively writing your cover letter:

- **CheapAI**, an honest format converter and refiner, extracts essential info from job description and résumé.
- **StrongAI**, a thoughtful wordsmith, composes perfect cover letters to make both you and recruiters happy.

> Thanks to **CheapAI**'s work, your spending on **StrongAI** is substaintially saved.


![workflow](asset/CoverPilot_workflow.png)


## Setup

### Prepare API for AI capabilities

> [!IMPORTANT]
> You have to bring your own API keys.  
> If you have no idea about it, try getting one from https://beta.openai.com/account/api-keys

Its API base defaults to OpenAI's, and is compatible with other AI chat service providers who have the same API structure.

API configurations can be set in 2 ways:
- environment variables
- Web UI

Check out the [config.py](app/config.py) for more details.

### Deploy on Hugging Face

[![🤗 Deploy on Hugging Face](https://huggingface.co/datasets/huggingface/badges/resolve/main/deploy-on-spaces-md-dark.svg)](https://huggingface.co/spaces/cxumol/CoverPilot?duplicate=true)

### Run on local

```bash
git lfs install
git clone https://github.com/cxumol/CoverPilot.git && cd CoverPilot
pip install -r requirements.txt
python app/app.py
```

Once the app is running, you can access it at http://localhost:7860.  
And then follow the instructions on the Web UI.  

If you are still confused about how to use it, check out the [demo video](#demo).

## Example

Here is an example of generated file [cover_letter_by_Steve Jobs_to_Microsoft.pdf](https://github.com/cxumol/CoverPilot/blob/main/asset/example_cover_letter_by_Steve%20Jobs_to_Microsoft.pdf)

> [!TIP]
> Yes, it's generated from the video demo.

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## Motivation

Please consider hiring me if you like this project.