Explorar o código

Fix coreml.js importer error

Lutz Roeder %!s(int64=8) %!d(string=hai) anos
pai
achega
ee1fc5347f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/coreml-model.js

+ 1 - 2
src/coreml-model.js

@@ -9,8 +9,7 @@ class CoreMLModel {
     static open(buffer, identifier, host, callback) { 
         host.import('/coreml.js', (err) => {
             if (err) {
-                callback(new Error('Unsupported file extension \'.mlmodel\'.'), null);
-                // callback(err, null);
+                callback(err, null);
             }
             else {
                 coreml = protobuf.roots.coreml.CoreML.Specification;