Skip to content

Commit 95e35a4

Browse files
authored
Update flask_rest_api_tutorial.py
Fixed formatting and typo from #583.
1 parent d659ec4 commit 95e35a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

intermediate_source/flask_rest_api_tutorial.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def get_prediction(image_bytes):
207207
# readable name.
208208
#
209209
# .. Note ::
210-
# Did you notice that why ``model`` variable is not part of ``get_prediction``
210+
# Did you notice that ``model`` variable is not part of ``get_prediction``
211211
# method? Or why is model a global variable? Loading a model can be an
212212
# expensive operation in terms of memory and compute. If we loaded the model in the
213213
# ``get_prediction`` method, then it would get unnecessarily loaded every
@@ -243,8 +243,7 @@ def predict():
243243
######################################################################
244244
# The ``app.py`` file is now complete. Following is the full version:
245245
#
246-
# .. code-block:: javascript
247-
# :linenos:
246+
# .. code-block:: python
248247
#
249248
# import io
250249
# import json

0 commit comments

Comments
 (0)