This Flask application has two endpoints:
/extract-text: This endpoint extracts text from a PDF file./generate-resume: This endpoint generates a resume given the extracted resume text and job description.
To use the /extract-text endpoint, send a POST request with a PDF file in the request body. To use the /generate-resume endpoint, send a POST request with the extracted resume text and job description in the request body.
import requests
url = 'http://localhost:5000/extract-text'
files = {'file': open('example.pdf', 'rb')}
response = requests.post(url, files=files)
print(response.json())
import requests
url = 'http://localhost:5000/generate-resume'
data = {'resume_text': 'Extracted resume text', 'job_description': 'Job description'}
response = requests.post(url, json=data)
print(response.json())