File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments