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.
1 parent 6d59c1a commit cf161bcCopy full SHA for cf161bc
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