jhj0517 commited on
Commit
f403068
·
1 Parent(s): 2abc8d7

fix spaces bug

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +0 -3
modules/whisper/whisper_base.py CHANGED
@@ -42,7 +42,6 @@ class WhisperBase(ABC):
42
  self.vad = SileroVAD()
43
 
44
  @abstractmethod
45
- @spaces.GPU(duration=120)
46
  def transcribe(self,
47
  audio: Union[str, BinaryIO, np.ndarray],
48
  progress: gr.Progress,
@@ -51,7 +50,6 @@ class WhisperBase(ABC):
51
  pass
52
 
53
  @abstractmethod
54
- @spaces.GPU(duration=120)
55
  def update_model(self,
56
  model_size: str,
57
  compute_type: str,
@@ -59,7 +57,6 @@ class WhisperBase(ABC):
59
  ):
60
  pass
61
 
62
- @spaces.GPU(duration=120)
63
  def run(self,
64
  audio: Union[str, BinaryIO, np.ndarray],
65
  progress: gr.Progress,
 
42
  self.vad = SileroVAD()
43
 
44
  @abstractmethod
 
45
  def transcribe(self,
46
  audio: Union[str, BinaryIO, np.ndarray],
47
  progress: gr.Progress,
 
50
  pass
51
 
52
  @abstractmethod
 
53
  def update_model(self,
54
  model_size: str,
55
  compute_type: str,
 
57
  ):
58
  pass
59
 
 
60
  def run(self,
61
  audio: Union[str, BinaryIO, np.ndarray],
62
  progress: gr.Progress,