Spaces:
Running
Running
jhj0517
commited on
Commit
·
9820e0f
1
Parent(s):
ca772aa
Fix wrong value return
Browse files
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:
|