Spaces:
Running
Running
jhj0517
commited on
Commit
·
4495187
1
Parent(s):
a85dc3c
Add defaults to the function
Browse files
modules/whisper/faster_whisper_inference.py
CHANGED
|
@@ -40,7 +40,7 @@ class FasterWhisperInference(WhisperBase):
|
|
| 40 |
|
| 41 |
def transcribe(self,
|
| 42 |
audio: Union[str, BinaryIO, np.ndarray],
|
| 43 |
-
progress: gr.Progress,
|
| 44 |
*whisper_params,
|
| 45 |
) -> Tuple[List[dict], float]:
|
| 46 |
"""
|
|
@@ -126,7 +126,7 @@ class FasterWhisperInference(WhisperBase):
|
|
| 126 |
def update_model(self,
|
| 127 |
model_size: str,
|
| 128 |
compute_type: str,
|
| 129 |
-
progress: gr.Progress
|
| 130 |
):
|
| 131 |
"""
|
| 132 |
Update current model setting
|
|
|
|
| 40 |
|
| 41 |
def transcribe(self,
|
| 42 |
audio: Union[str, BinaryIO, np.ndarray],
|
| 43 |
+
progress: gr.Progress = gr.Progress(),
|
| 44 |
*whisper_params,
|
| 45 |
) -> Tuple[List[dict], float]:
|
| 46 |
"""
|
|
|
|
| 126 |
def update_model(self,
|
| 127 |
model_size: str,
|
| 128 |
compute_type: str,
|
| 129 |
+
progress: gr.Progress = gr.Progress()
|
| 130 |
):
|
| 131 |
"""
|
| 132 |
Update current model setting
|