Akjava commited on
Commit
04e66e6
·
verified ·
1 Parent(s): cb8e9a3

Update js-esm/text_to_arpa.js

Browse files
Files changed (1) hide show
  1. js-esm/text_to_arpa.js +3 -2
js-esm/text_to_arpa.js CHANGED
@@ -1,5 +1,6 @@
1
- import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]';
2
- env.backends.onnx.logSeverityLevel = 3
 
3
 
4
  async function text2text_generation(words,convert_ipa=false) {
5
  const generator = await pipeline('text2text-generation', 'mini-bart-g2p',{quantized: false});
 
1
+ import { pipeline, env ,setLogLevel} from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]';
2
+ env.backends.onnx.logSeverityLevel = 4
3
+ setLogLevel('silent');
4
 
5
  async function text2text_generation(words,convert_ipa=false) {
6
  const generator = await pipeline('text2text-generation', 'mini-bart-g2p',{quantized: false});