Skip to content

Commit

Permalink
Changed host on test_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardojdb committed Mar 27, 2019
1 parent 5f2c37b commit 81511bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
img.save(buffer, "JPEG")
img_str = base64.b64encode(buffer.getvalue())

host = 192.168.8.100
for i in range(4):
try:
r = requests.get("http://192.168.8.100:7{0:03}/predict/".format(i), data=img_str)
r = requests.get("http://f{host}:7{0:03}/predict/".format(i), data=img_str)
except Exception as e:
print("Error with API in port 7{0:03}".format(i))
continue
Expand Down

0 comments on commit 81511bc

Please sign in to comment.