jhj0517 commited on
Commit
9820e0f
·
1 Parent(s): ca772aa

Fix wrong value return

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +1 -1
modules/whisper/whisper_base.py CHANGED
@@ -467,7 +467,7 @@ class WhisperBase(ABC):
467
 
468
  @staticmethod
469
  def is_sparse_api_supported():
470
- if torch.backends.mps.is_available():
471
  return False
472
 
473
  try:
 
467
 
468
  @staticmethod
469
  def is_sparse_api_supported():
470
+ if not torch.backends.mps.is_available():
471
  return False
472
 
473
  try: