intel / intel-extension-for-transformers

⚡ Build your chatbot within minutes on your favorite device; offer SOTA compression techniques for LLMs; run LLMs efficiently on Intel Platforms⚡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NeuralChat TTS plugin unable to initialize due to missing dependency: librosa

alexsin368 opened this issue · comments

The NeuralChat TTS plugin is unable to initialize when building the chatbot due to check_tts_dependency() in intel_extension_for_transformers/neural_chat/chatbot.py returning False. Image shown below. This is because the library "librosa" is not in the requirements file.

There are two ways to fix this (which I have verified myself), and will let the team decide:

  1. Add librosa back into the requirements.txt file for the audio TTS plugin: https://github.com/intel/intel-extension-for-transformers/blob/main/intel_extension_for_transformers/neural_chat/pipeline/plugins/audio/requirements.txt

  2. Remove librosa in chatbot.py: https://github.com/intel/intel-extension-for-transformers/blob/main/intel_extension_for_transformers/neural_chat/chatbot.py#L35

image

librosa added back to requirements.txt file in #1496