diff --git a/whisper_live/server.py b/whisper_live/server.py index 4a8a1d8..e9e8493 100644 --- a/whisper_live/server.py +++ b/whisper_live/server.py @@ -1,5 +1,4 @@ import os -import websockets import time import threading import json @@ -12,10 +11,8 @@ from websockets.sync.server import serve import torch import numpy as np -import queue from whisper_live.vad import VoiceActivityDetection -from scipy.io.wavfile import write import functools from whisper_live.vad import VoiceActivityDetection @@ -23,7 +20,7 @@ from whisper_live.transcriber import WhisperModel try: from whisper_live.transcriber_tensorrt import WhisperTRTLLM except Exception as e: - logging.warn("cannot import WhisperTRTLLM") + pass class TranscriptionServer: