metadata
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
- Install dependencies:
pip install -r requirements.txt
- Set up the Gemini API key:
export GEMINI_API_KEY=your_api_key_here
- Run the API server:
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:
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:
python main.py /path/to/your/resume.pdf