Spaces:
Runtime error
Runtime error
jhj0517 commited on
Commit ·
85aa42e
1
Parent(s): ea1f078
debug decoration
Browse files
modules/whisper/faster_whisper_inference.py
CHANGED
|
@@ -32,7 +32,7 @@ class FasterWhisperInference(WhisperBase):
|
|
| 32 |
self.available_compute_types = self.get_available_compute_type()
|
| 33 |
self.download_model(model_size="large-v2", model_dir=self.model_dir)
|
| 34 |
|
| 35 |
-
@spaces.GPU(duration=120)
|
| 36 |
def transcribe(self,
|
| 37 |
audio: Union[str, BinaryIO, np.ndarray],
|
| 38 |
*whisper_params,
|
|
@@ -92,7 +92,7 @@ class FasterWhisperInference(WhisperBase):
|
|
| 92 |
print("transcribe: finished")
|
| 93 |
return segments_result, elapsed_time
|
| 94 |
|
| 95 |
-
@spaces.GPU(duration=120)
|
| 96 |
def update_model(self,
|
| 97 |
model_size: str,
|
| 98 |
compute_type: str,
|
|
|
|
| 32 |
self.available_compute_types = self.get_available_compute_type()
|
| 33 |
self.download_model(model_size="large-v2", model_dir=self.model_dir)
|
| 34 |
|
| 35 |
+
#@spaces.GPU(duration=120)
|
| 36 |
def transcribe(self,
|
| 37 |
audio: Union[str, BinaryIO, np.ndarray],
|
| 38 |
*whisper_params,
|
|
|
|
| 92 |
print("transcribe: finished")
|
| 93 |
return segments_result, elapsed_time
|
| 94 |
|
| 95 |
+
#@spaces.GPU(duration=120)
|
| 96 |
def update_model(self,
|
| 97 |
model_size: str,
|
| 98 |
compute_type: str,
|