Skip to content

Commit

Permalink
reblacked code in seldon_core
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxue authored and seldondev committed Jan 4, 2021
1 parent 57e6ddd commit 8fd5e5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/seldon_core/seldon_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,8 @@ def rest_predict_seldon(
payload = seldon_message_to_json(request)

response_raw = requests.post(
"http://" + gateway_endpoint + "/api/v0.1/predictions", json=payload,
"http://" + gateway_endpoint + "/api/v0.1/predictions",
json=payload,
)
if response_raw.status_code == 200:
success = True
Expand Down Expand Up @@ -1920,7 +1921,8 @@ def rest_feedback_seldon(
payload = feedback_to_json(request)

response_raw = requests.post(
"http://" + gateway_endpoint + "/api/v1.0/feedback", json=payload,
"http://" + gateway_endpoint + "/api/v1.0/feedback",
json=payload,
)
if response_raw.status_code == 200:
success = True
Expand Down

0 comments on commit 8fd5e5a

Please sign in to comment.