I have a node.js project doing speech-to-text transcription with the xenova/transformers models. My project shows a lot of warnings - how do I suppress the warnings to log only errors?
I've tried using this line
process.env.XENOVA_LOG_LEVEL = '1'; as the first line in the file where I import the transformer import { pipeline as createPipeline, env } from '@xenova/transformers';
Example warning:
[W:onnxruntime:, graph.cc:3490 CleanUnusedInitializersAndNodeArgs] Removing initializer '/model/decoder/Shape_4_output_0'. It is not used by any node and should be removed from the model.