Update index.js
Browse files
index.js
CHANGED
|
@@ -20,6 +20,7 @@ const imageContainer = document.getElementById('container');
|
|
| 20 |
const example = document.getElementById('example');
|
| 21 |
|
| 22 |
let ortSessionA, ortSessionB, ortSessionC;
|
|
|
|
| 23 |
|
| 24 |
async function initializeSessions() {
|
| 25 |
status.textContent = 'Loading model...';
|
|
@@ -42,6 +43,8 @@ async function initializeSessions() {
|
|
| 42 |
);
|
| 43 |
console.log({ortSessionC});
|
| 44 |
|
|
|
|
|
|
|
| 45 |
status.textContent = 'Ready';
|
| 46 |
}
|
| 47 |
|
|
|
|
| 20 |
const example = document.getElementById('example');
|
| 21 |
|
| 22 |
let ortSessionA, ortSessionB, ortSessionC;
|
| 23 |
+
let config;
|
| 24 |
|
| 25 |
async function initializeSessions() {
|
| 26 |
status.textContent = 'Loading model...';
|
|
|
|
| 43 |
);
|
| 44 |
console.log({ortSessionC});
|
| 45 |
|
| 46 |
+
config = (await getModelJSON(BASE_MODEL, "config.json"));
|
| 47 |
+
|
| 48 |
status.textContent = 'Ready';
|
| 49 |
}
|
| 50 |
|