rr19tech commited on
Commit
72bb965
·
verified ·
1 Parent(s): 44624d5

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +8 -2
index.html CHANGED
@@ -11,13 +11,19 @@
11
  <body>
12
  <script>
13
  async function runInference() {
14
-
 
 
 
 
 
15
  }
 
16
  </script>
17
  <div >
18
  <h1>Welcome to rr19tech Alarm Threshold Model!</h1>
19
  <textarea id="showData" rows=10 cols=10></textarea>
20
- <input type="button" value="ShowModel" onclick="document.getElementById('showData').text='hello';" />
21
  </div>
22
  </body>
23
  </html>
 
11
  <body>
12
  <script>
13
  async function runInference() {
14
+ const session = await ort.InferenceSession.create('./alarm_threshold.ort', {logSeverityLevel: 3});
15
+ console.log(session.inputNames);
16
+ console.log(session.outputNames);
17
+ txtarea = document.getElementById('showData');
18
+ txtarea.value="Checking the model with inputs: " + session.inputNames + ", and output : " + session.outputNames;
19
+
20
  }
21
+ runInference();
22
  </script>
23
  <div >
24
  <h1>Welcome to rr19tech Alarm Threshold Model!</h1>
25
  <textarea id="showData" rows=10 cols=10></textarea>
26
+ <input type="button" value="ShowModel" onclick="document.getElementById('showData').value='hello';" />
27
  </div>
28
  </body>
29
  </html>