Spaces:
Running
Running
jhj0517
commited on
Commit
·
a88b526
1
Parent(s):
927f1ef
Rename model
Browse files- modules/whisper/whisper_base.py +1 -1
- tests/test_bgm_separation.py +1 -1
- tests/test_diarization.py +1 -1
- tests/test_transcription.py +2 -2
- tests/test_vad.py +1 -1
modules/whisper/whisper_base.py
CHANGED
@@ -514,7 +514,7 @@ class WhisperBase(ABC):
|
|
514 |
|
515 |
@staticmethod
|
516 |
def cache_parameters(
|
517 |
-
whisper_params:
|
518 |
add_timestamp: bool
|
519 |
):
|
520 |
"""cache parameters to the yaml file"""
|
|
|
514 |
|
515 |
@staticmethod
|
516 |
def cache_parameters(
|
517 |
+
whisper_params: TranscriptionPipelineParams,
|
518 |
add_timestamp: bool
|
519 |
):
|
520 |
"""cache parameters to the yaml file"""
|
tests/test_bgm_separation.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from modules.utils.paths import *
|
2 |
from modules.whisper.whisper_factory import WhisperFactory
|
3 |
-
from modules.whisper.data_classes import
|
4 |
from test_config import *
|
5 |
from test_transcription import download_file, test_transcribe
|
6 |
|
|
|
1 |
from modules.utils.paths import *
|
2 |
from modules.whisper.whisper_factory import WhisperFactory
|
3 |
+
from modules.whisper.data_classes import TranscriptionPipelineParams
|
4 |
from test_config import *
|
5 |
from test_transcription import download_file, test_transcribe
|
6 |
|
tests/test_diarization.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from modules.utils.paths import *
|
2 |
from modules.whisper.whisper_factory import WhisperFactory
|
3 |
-
from modules.whisper.data_classes import
|
4 |
from test_config import *
|
5 |
from test_transcription import download_file, test_transcribe
|
6 |
|
|
|
1 |
from modules.utils.paths import *
|
2 |
from modules.whisper.whisper_factory import WhisperFactory
|
3 |
+
from modules.whisper.data_classes import TranscriptionPipelineParams
|
4 |
from test_config import *
|
5 |
from test_transcription import download_file, test_transcribe
|
6 |
|
tests/test_transcription.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from modules.whisper.whisper_factory import WhisperFactory
|
2 |
-
from modules.whisper.data_classes import
|
3 |
from modules.utils.paths import WEBUI_DIR
|
4 |
from test_config import *
|
5 |
|
@@ -37,7 +37,7 @@ def test_transcribe(
|
|
37 |
f"""Diarization Device: {whisper_inferencer.diarizer.device}"""
|
38 |
)
|
39 |
|
40 |
-
hparams =
|
41 |
model_size=TEST_WHISPER_MODEL,
|
42 |
vad_filter=vad_filter,
|
43 |
is_bgm_separate=bgm_separation,
|
|
|
1 |
from modules.whisper.whisper_factory import WhisperFactory
|
2 |
+
from modules.whisper.data_classes import TranscriptionPipelineParams
|
3 |
from modules.utils.paths import WEBUI_DIR
|
4 |
from test_config import *
|
5 |
|
|
|
37 |
f"""Diarization Device: {whisper_inferencer.diarizer.device}"""
|
38 |
)
|
39 |
|
40 |
+
hparams = TranscriptionPipelineParams(
|
41 |
model_size=TEST_WHISPER_MODEL,
|
42 |
vad_filter=vad_filter,
|
43 |
is_bgm_separate=bgm_separation,
|
tests/test_vad.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from modules.utils.paths import *
|
2 |
from modules.whisper.whisper_factory import WhisperFactory
|
3 |
-
from modules.whisper.data_classes import
|
4 |
from test_config import *
|
5 |
from test_transcription import download_file, test_transcribe
|
6 |
|
|
|
1 |
from modules.utils.paths import *
|
2 |
from modules.whisper.whisper_factory import WhisperFactory
|
3 |
+
from modules.whisper.data_classes import TranscriptionPipelineParams
|
4 |
from test_config import *
|
5 |
from test_transcription import download_file, test_transcribe
|
6 |
|