Spaces:
Running
Running
Commit
·
4e584a6
1
Parent(s):
ec9fbf7
fix: change evaluation to evaluations
Browse files
public-prediction/kafka_consumer.py
CHANGED
@@ -48,11 +48,12 @@ def send_results_back(full_results: dict[str, any], job_application_id: str):
|
|
48 |
|
49 |
body = {
|
50 |
"job_application_id": job_application_id,
|
51 |
-
"
|
52 |
}
|
53 |
|
54 |
response = requests.patch(url, json=body, headers=headers)
|
55 |
print(f"Data sent with status code {response.status_code}")
|
|
|
56 |
|
57 |
|
58 |
def consume_messages():
|
|
|
48 |
|
49 |
body = {
|
50 |
"job_application_id": job_application_id,
|
51 |
+
"evaluations": full_results
|
52 |
}
|
53 |
|
54 |
response = requests.patch(url, json=body, headers=headers)
|
55 |
print(f"Data sent with status code {response.status_code}")
|
56 |
+
print(response.content)
|
57 |
|
58 |
|
59 |
def consume_messages():
|