Skip to content

Commit

Permalink
Changed script versions to latest in snippets (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
sryu1 authored Feb 6, 2023
1 parent ef1dbb9 commit d95cfd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions snippets/markdown/image/tensorflowjs/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Learn more about how to use the code snippet on [github](https://github.com/goog
<button type="button" onclick="init()">Start</button>
<div id="webcam-container"></div>
<div id="label-container"></div>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.3.1/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/image@0.8/dist/teachablemachine-image.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/image@latest/dist/teachablemachine-image.min.js"></script>
<script type="text/javascript">
// More API functions here:
// https://github.com/googlecreativelab/teachablemachine-community/tree/master/libraries/image
Expand Down
6 changes: 3 additions & 3 deletions snippets/markdown/image/tensorflowjs/p5js.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ Open up the code snippet below directly in the [p5.js Web Editor](https://editor

```html
<div>Teachable Machine Image Model - p5.js and ml5.js</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
<script src="https://unpkg.com/ml5@latest/dist/ml5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@latest/lib/p5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@latest/lib/addons/p5.dom.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ml5@latest/dist/ml5.min.js"></script>
<script type="text/javascript">
// Classifier Variable
let classifier;
Expand Down

0 comments on commit d95cfd8

Please sign in to comment.