File size: 907 Bytes
a8ce6f1 716138f |
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 |
---
title: CV Parser
emoji: 🐳
colorFrom: purple
colorTo: gray
sdk: docker
app_port: 7860
---
# CV Parser
A FastAPI service that parses resumes and CVs from various document formats.
## Setup
1. Install dependencies:
```bash
pip install -r requirements.txt
```
2. Set up the Gemini API key:
```bash
export GEMINI_API_KEY=your_api_key_here
```
3. Run the API server:
```bash
python api.py
```
The server will start on http://localhost:8000
## API Usage
### Upload a Document
**Endpoint:** `POST /upload/`
**Supported formats:** PDF, DOCX, JPG, JPEG, PNG
**Example using curl:**
```bash
curl -X 'POST' \
'http://localhost:8000/upload/' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@/path/to/your/resume.pdf'
```
## Command Line Usage
You can also use the parser directly from the command line:
```bash
python main.py /path/to/your/resume.pdf
```
|