Update js-esm/text_to_arpa.js
Browse files- js-esm/text_to_arpa.js +3 -2
js-esm/text_to_arpa.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
-
import { pipeline, env
|
2 |
env.backends.onnx.logSeverityLevel = 4
|
3 |
-
|
|
|
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/transformers@2.17.2';
|
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});
|