Skip to content

Commit 75635f4

Browse files
authored
Update flask_rest_api_tutorial.py
Edited sentence.
1 parent dd93a45 commit 75635f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intermediate_source/flask_rest_api_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def transform_image(image_bytes):
130130

131131

132132
######################################################################
133-
# Above method takes image data in bytes, applies the series of transforms
133+
# The above method takes image data in bytes, applies the series of transforms
134134
# and returns a tensor. To test the above method, read an image file in
135135
# bytes mode (first replacing `../_static/img/sample_file.jpeg` with the actual
136136
# path to the file on your computer) and see if you get a tensor back:
@@ -349,4 +349,4 @@ def get_prediction(image_bytes):
349349
#
350350
# - You can also add a UI by creating a page with a form which takes the image and
351351
# displays the prediction. Check out the `demo <https://pytorch-imagenet.herokuapp.com/>`_
352-
# of a similar project and its `source code <https://github.com/avinassh/pytorch-flask-api-heroku>`_.
352+
# of a similar project and its `source code <https://github.com/avinassh/pytorch-flask-api-heroku>`_.

0 commit comments

Comments
 (0)