Remove automatic downloading of SimulStreaming dependencies on import failure
This commit is contained in:
parent
156b9a133f
commit
90623400a4
1 changed files with 5 additions and 16 deletions
|
|
@ -23,17 +23,6 @@ try:
|
||||||
from whisperlivekit.simul_whisper.whisper import tokenizer
|
from whisperlivekit.simul_whisper.whisper import tokenizer
|
||||||
SIMULSTREAMING_AVAILABLE = True
|
SIMULSTREAMING_AVAILABLE = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warning("⚠️ SimulStreaming dependencies not available. Attempting to download them.")
|
|
||||||
try:
|
|
||||||
from whisperlivekit import download_simulstreaming_backend
|
|
||||||
download_simulstreaming_backend()
|
|
||||||
from whisperlivekit.simul_whisper.config import AlignAttConfig
|
|
||||||
from whisperlivekit.simul_whisper.simul_whisper import PaddedAlignAttWhisper, DEC_PAD
|
|
||||||
from whisperlivekit.simul_whisper.whisper import tokenizer
|
|
||||||
SIMULSTREAMING_AVAILABLE = True
|
|
||||||
logger.info("SimulStreaming dependencies downloaded successfully.")
|
|
||||||
except Exception as e:
|
|
||||||
logger.error(f"Failed to download or import SimulStreaming dependencies: {e}")
|
|
||||||
SIMULSTREAMING_AVAILABLE = False
|
SIMULSTREAMING_AVAILABLE = False
|
||||||
AlignAttConfig = None
|
AlignAttConfig = None
|
||||||
PaddedAlignAttWhisper = None
|
PaddedAlignAttWhisper = None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue