Spaces:
Sleeping
Sleeping
| import requests | |
| import json | |
| url = "http://localhost:8000/analyze-candidate" | |
| payload = { | |
| "candidate_id": "92f155f8-8422-4819-ade1-697624640103", | |
| "job_id": "76259020-f560-4927-ba21-4ea671e62c16" | |
| } | |
| headers = {"Content-Type": "application/json"} | |
| try: | |
| response = requests.post(url, data=json.dumps(payload), headers=headers) | |
| print(f"Status: {response.status_code}") | |
| print(json.dumps(response.json(), indent=2)) | |
| except Exception as e: | |
| print(f"Error: {e}") | |