We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 224855b + cf161bc commit 22112feCopy full SHA for 22112fe
src/ImageClassifier/index.js
@@ -65,7 +65,10 @@ class ImageClassifier {
65
this.modelToUse = null;
66
}
67
} else {
68
+ // its a url, we expect to find model.json
69
this.modelUrl = modelNameOrUrl;
70
+ // The teachablemachine urls end with a slash, so add model.json to complete the full path
71
+ if (this.modelUrl.endsWith('/')) this.modelUrl += "model.json";
72
73
74
// Load the model
0 commit comments