diff --git a/client/client.py b/client/client.py deleted file mode 100644 index 395693c3537236eb30a67182b4d2abbb1274fa85..0000000000000000000000000000000000000000 --- a/client/client.py +++ /dev/null @@ -1,13 +0,0 @@ -import requests -from requests_toolbelt.multipart.encoder import MultipartEncoder - -# Send local image file to tensorflow-client -multipart_data = MultipartEncoder( - fields={ - # a file upload field - 'image': ('image.jpg', open('image.jpg', 'rb'), 'text/plain') - } - ) - -response = requests.post('http://tensorflow.stop.capstone.utu.fi/api/v1/classifyImage/', data=multipart_data, - headers={'Content-Type': multipart_data.content_type}) \ No newline at end of file