Skip to content

Commit

Permalink
Changing the response signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Jul 23, 2024
1 parent 428b2d1 commit af1eb33
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions isacc_messaging/api/isacc_record_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,7 @@ def score_message(self, message):

try:
url = f'{ml_service_address}/predict_score'
headers = {'Content-Type': 'application/json'}
data = {'message': message}

response = requests.post(url, headers=headers, data=json.dumps(data))
response = requests.post(url, json={"message": message})
response.raise_for_status()
audit_entry(
f"predict_score call response: {response.json()}",
Expand Down

0 comments on commit af1eb33

Please sign in to comment.