Akjava commited on
Commit
978f8ad
1 Parent(s): 04e66e6

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,6 +1,7 @@
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});
 
1
+ import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]';
2
  env.backends.onnx.logSeverityLevel = 4
3
+ console.log(env)
4
+ env.LOG_LEVEL = 'error';
5
 
6
  async function text2text_generation(words,convert_ipa=false) {
7
  const generator = await pipeline('text2text-generation', 'mini-bart-g2p',{quantized: false});