Skip to content

Commit b071cde

Browse files
authored
Update flask_rest_api_tutorial.py
Changed quotes.
1 parent 2164075 commit b071cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intermediate_source/flask_rest_api_tutorial.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def transform_image(image_bytes):
134134
# and returns a tensor. To test the above method, read an image file in
135135
# bytes mode and see if you get a tensor back:
136136

137-
with open('./_static/img/sample_file.jpeg', 'rb') as f:
137+
with open("./_static/img/sample_file.jpeg", 'rb') as f:
138138
image_bytes = f.read()
139139
tensor = transform_image(image_bytes=image_bytes)
140140
print(tensor)
@@ -193,7 +193,7 @@ def get_prediction(image_bytes):
193193
# We will test our above method:
194194

195195

196-
with open('./_static/img/sample_file.jpeg', 'rb') as f:
196+
with open("./_static/img/sample_file.jpeg", 'rb') as f:
197197
image_bytes = f.read()
198198
print(get_prediction(image_bytes=image_bytes))
199199

0 commit comments

Comments
 (0)