mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-07-03 14:05:26 +02:00
fixed weight warning
This commit is contained in:
@@ -46,7 +46,13 @@ def _get_local_model(whisper_model: str, device: str) -> _WhisperModelLike:
|
||||
try:
|
||||
_model_cache[cache_key] = WhisperModel(whisper_model, device="cuda")
|
||||
except RuntimeError:
|
||||
_model_cache[cache_key] = WhisperModel(whisper_model, device="cpu")
|
||||
_model_cache[cache_key] = WhisperModel(
|
||||
whisper_model, device="cpu", compute_type="float32"
|
||||
)
|
||||
elif resolved == "cpu":
|
||||
_model_cache[cache_key] = WhisperModel(
|
||||
whisper_model, device="cpu", compute_type="float32"
|
||||
)
|
||||
else:
|
||||
_model_cache[cache_key] = WhisperModel(whisper_model, device=resolved)
|
||||
except ImportError as e:
|
||||
|
||||
Reference in New Issue
Block a user