Skip to content
Snippets Groups Projects
Commit 4679bd39 authored by Andres Marafioti's avatar Andres Marafioti
Browse files

only import melo if needed

parent a4888572
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ from time import perf_counter
from typing import Optional
from sys import platform
from LLM.mlx_lm import MLXLanguageModelHandler
from TTS.melotts import MeloTTSHandler
from baseHandler import BaseHandler
from STT.lightning_whisper_mlx_handler import LightningWhisperSTTHandler
import numpy as np
......@@ -1069,6 +1068,7 @@ def main():
)
elif module_kwargs.tts == 'melo':
from TTS.melotts import MeloTTSHandler
tts = MeloTTSHandler(
stop_event,
queue_in=lm_response_queue,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment