pdufour commited on
Commit
0629524
1 Parent(s): 9a35308

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -0
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