Skip to content

Commit

Permalink
complete the notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
nikp1172 committed Feb 19, 2024
1 parent 9b38440 commit 179f862
Show file tree
Hide file tree
Showing 3 changed files with 337 additions and 2 deletions.
336 changes: 336 additions & 0 deletions mnist-classifaction/deploy_model.ipynb

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion mnist-classifaction/deploy_model/fastapi_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def load_image(img_url):
img_path = tf.keras.utils.get_file("image.jpg", img_url)
img = tf.keras.preprocessing.image.load_img(img_path, target_size=(28, 28))
img_arr = tf.keras.preprocessing.image.img_to_array(img)
img_arr = tf.image.rgb_to_grayscale(img_arr) / 255.0
return img_arr


Expand Down
2 changes: 1 addition & 1 deletion mnist-classifaction/train_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"id": "QOAnoPl-dlSY"
},
"source": [
"# Train and Deploy Model on Truefoundry\n",
"# Train Model on Truefoundry\n",
"This notebook demonstrates a demo on how you can train an image classification model on mnist dataset and deploy the model training job on truefoundry platform."
]
},
Expand Down

0 comments on commit 179f862

Please sign in to comment.