@tensorflow/tfjs-automl
Advanced tools
Comparing version 0.0.1-alpha.1 to 0.0.1-alpha.2
@@ -19,2 +19,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// tslint:disable-next-line: no-imports-from-dist | ||
var jasmine_util_1 = require("@tensorflow/tfjs-core/dist/jasmine_util"); | ||
@@ -21,0 +22,0 @@ // Increase test timeout since we are fetching the model files from GCS. |
@@ -19,2 +19,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// tslint:disable-next-line: no-imports-from-dist | ||
var jasmine_util_1 = require("@tensorflow/tfjs-core/dist/jasmine_util"); | ||
@@ -21,0 +22,0 @@ // tslint:disable-next-line:no-require-imports |
@@ -94,8 +94,9 @@ /** | ||
return __awaiter(this, void 0, void 0, function () { | ||
var prefixUrl, dictUrl, response, text; | ||
var lastIndexOfSlash, prefixUrl, dictUrl, response, text; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
prefixUrl = modelUrl.slice(0, modelUrl.lastIndexOf('/')); | ||
dictUrl = prefixUrl + "/dict.txt"; | ||
lastIndexOfSlash = modelUrl.lastIndexOf('/'); | ||
prefixUrl = lastIndexOfSlash >= 0 ? modelUrl.slice(0, lastIndexOfSlash + 1) : ''; | ||
dictUrl = prefixUrl + "dict.txt"; | ||
return [4 /*yield*/, util.fetch(dictUrl)]; | ||
@@ -349,3 +350,3 @@ case 1: | ||
// This code is auto-generated, do not modify this file! | ||
var version = '0.0.1-alpha.1'; | ||
var version = '0.0.1-alpha.2'; | ||
@@ -352,0 +353,0 @@ /** |
@@ -97,8 +97,9 @@ /** | ||
return __awaiter(this, void 0, void 0, function () { | ||
var prefixUrl, dictUrl, response, text; | ||
var lastIndexOfSlash, prefixUrl, dictUrl, response, text; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
prefixUrl = modelUrl.slice(0, modelUrl.lastIndexOf('/')); | ||
dictUrl = prefixUrl + "/dict.txt"; | ||
lastIndexOfSlash = modelUrl.lastIndexOf('/'); | ||
prefixUrl = lastIndexOfSlash >= 0 ? modelUrl.slice(0, lastIndexOfSlash + 1) : ''; | ||
dictUrl = prefixUrl + "dict.txt"; | ||
return [4 /*yield*/, tfjsCore.util.fetch(dictUrl)]; | ||
@@ -352,3 +353,3 @@ case 1: | ||
// This code is auto-generated, do not modify this file! | ||
var version = '0.0.1-alpha.1'; | ||
var version = '0.0.1-alpha.2'; | ||
@@ -355,0 +356,0 @@ /** |
@@ -97,8 +97,9 @@ /** | ||
return __awaiter(this, void 0, void 0, function () { | ||
var prefixUrl, dictUrl, response, text; | ||
var lastIndexOfSlash, prefixUrl, dictUrl, response, text; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
prefixUrl = modelUrl.slice(0, modelUrl.lastIndexOf('/')); | ||
dictUrl = prefixUrl + "/dict.txt"; | ||
lastIndexOfSlash = modelUrl.lastIndexOf('/'); | ||
prefixUrl = lastIndexOfSlash >= 0 ? modelUrl.slice(0, lastIndexOfSlash + 1) : ''; | ||
dictUrl = prefixUrl + "dict.txt"; | ||
return [4 /*yield*/, tfjsCore.util.fetch(dictUrl)]; | ||
@@ -352,3 +353,3 @@ case 1: | ||
// This code is auto-generated, do not modify this file! | ||
var version = '0.0.1-alpha.1'; | ||
var version = '0.0.1-alpha.2'; | ||
@@ -355,0 +356,0 @@ /** |
@@ -62,8 +62,9 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var prefixUrl, dictUrl, response, text; | ||
var lastIndexOfSlash, prefixUrl, dictUrl, response, text; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
prefixUrl = modelUrl.slice(0, modelUrl.lastIndexOf('/')); | ||
dictUrl = prefixUrl + "/dict.txt"; | ||
lastIndexOfSlash = modelUrl.lastIndexOf('/'); | ||
prefixUrl = lastIndexOfSlash >= 0 ? modelUrl.slice(0, lastIndexOfSlash + 1) : ''; | ||
dictUrl = prefixUrl + "dict.txt"; | ||
return [4 /*yield*/, tfjs_core_1.util.fetch(dictUrl)]; | ||
@@ -70,0 +71,0 @@ case 1: |
/** @license See the LICENSE file. */ | ||
declare const version = "0.0.1-alpha.1"; | ||
declare const version = "0.0.1-alpha.2"; | ||
export { version }; |
@@ -5,4 +5,4 @@ "use strict"; | ||
// This code is auto-generated, do not modify this file! | ||
var version = '0.0.1-alpha.1'; | ||
var version = '0.0.1-alpha.2'; | ||
exports.version = version; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@tensorflow/tfjs-automl", | ||
"version": "0.0.1-alpha.1", | ||
"version": "0.0.1-alpha.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -18,2 +18,3 @@ /** | ||
// tslint:disable-next-line: no-imports-from-dist | ||
import {setTestEnvs} from '@tensorflow/tfjs-core/dist/jasmine_util'; | ||
@@ -20,0 +21,0 @@ |
@@ -18,2 +18,3 @@ /** | ||
// tslint:disable-next-line: no-imports-from-dist | ||
import {setTestEnvs} from '@tensorflow/tfjs-core/dist/jasmine_util'; | ||
@@ -20,0 +21,0 @@ |
@@ -27,4 +27,6 @@ /** | ||
export async function loadDictionary(modelUrl: string): Promise<string[]> { | ||
const prefixUrl = modelUrl.slice(0, modelUrl.lastIndexOf('/')); | ||
const dictUrl = `${prefixUrl}/dict.txt`; | ||
const lastIndexOfSlash = modelUrl.lastIndexOf('/'); | ||
const prefixUrl = | ||
lastIndexOfSlash >= 0 ? modelUrl.slice(0, lastIndexOfSlash + 1) : ''; | ||
const dictUrl = `${prefixUrl}dict.txt`; | ||
const response = await util.fetch(dictUrl); | ||
@@ -31,0 +33,0 @@ const text = await response.text(); |
/** @license See the LICENSE file. */ | ||
// This code is auto-generated, do not modify this file! | ||
const version = '0.0.1-alpha.1'; | ||
const version = '0.0.1-alpha.2'; | ||
export {version}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
184717
2317