Akjava commited on
Commit
aefaec7
·
verified ·
1 Parent(s): 278802e

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -2
index.html CHANGED
@@ -34,7 +34,7 @@
34
  if (speaking){
35
  console.log("speaking return")
36
  }
37
- const startTime = performance.now();
38
  speaking = true
39
  console.log("main called")
40
  if(!matcha_tts_raw){
@@ -50,6 +50,7 @@
50
  }else{
51
  console.log("session exist skip load model")
52
  }
 
53
  const text = document.getElementById('textInput').value
54
  console.log("### textToArpa call")
55
  const arpa_text = await textToArpa(cmudict,text)
@@ -79,7 +80,7 @@
79
  speaking = false
80
  }
81
  function update_infer_bench1(){
82
- const avg = a.toFixedtotal_infer_time/count_infer
83
  const text = `Infer Count ${count_infer} avg infer-time ${avg.toFixed(2)} ms`;
84
  document.getElementById('result').innerText=text
85
  }
 
34
  if (speaking){
35
  console.log("speaking return")
36
  }
37
+
38
  speaking = true
39
  console.log("main called")
40
  if(!matcha_tts_raw){
 
50
  }else{
51
  console.log("session exist skip load model")
52
  }
53
+ const startTime = performance.now();
54
  const text = document.getElementById('textInput').value
55
  console.log("### textToArpa call")
56
  const arpa_text = await textToArpa(cmudict,text)
 
80
  speaking = false
81
  }
82
  function update_infer_bench1(){
83
+ const avg = total_infer_time/count_infer
84
  const text = `Infer Count ${count_infer} avg infer-time ${avg.toFixed(2)} ms`;
85
  document.getElementById('result').innerText=text
86
  }