We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2164075 commit b071cdeCopy full SHA for b071cde
intermediate_source/flask_rest_api_tutorial.py
@@ -134,7 +134,7 @@ def transform_image(image_bytes):
134
# and returns a tensor. To test the above method, read an image file in
135
# bytes mode and see if you get a tensor back:
136
137
-with open('./_static/img/sample_file.jpeg', 'rb') as f:
+with open("./_static/img/sample_file.jpeg", 'rb') as f:
138
image_bytes = f.read()
139
tensor = transform_image(image_bytes=image_bytes)
140
print(tensor)
@@ -193,7 +193,7 @@ def get_prediction(image_bytes):
193
# We will test our above method:
194
195
196
197
198
print(get_prediction(image_bytes=image_bytes))
199
0 commit comments