Spaces:
Running
Running
jhj0517
commited on
Commit
·
38eb839
1
Parent(s):
b30c9c5
Add Diarization test
Browse files- tests/test_diarization.py +27 -0
tests/test_diarization.py
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from modules.utils.paths import *
|
2 |
+
from modules.whisper.whisper_factory import WhisperFactory
|
3 |
+
from modules.whisper.whisper_parameter import WhisperValues
|
4 |
+
from test_config import *
|
5 |
+
from test_transcription import download_file, test_transcribe
|
6 |
+
|
7 |
+
import gradio as gr
|
8 |
+
import pytest
|
9 |
+
import os
|
10 |
+
|
11 |
+
|
12 |
+
@pytest.mark.parametrize(
|
13 |
+
"whisper_type,vad_filter,bgm_separation,diarization",
|
14 |
+
[
|
15 |
+
("whisper", False, False, True),
|
16 |
+
("faster-whisper", False, False, True),
|
17 |
+
("insanely_fast_whisper", False, False, True)
|
18 |
+
]
|
19 |
+
)
|
20 |
+
def test_diarization_pipeline(
|
21 |
+
whisper_type: str,
|
22 |
+
vad_filter: bool,
|
23 |
+
bgm_separation: bool,
|
24 |
+
diarization: bool,
|
25 |
+
):
|
26 |
+
test_transcribe(whisper_type, vad_filter, bgm_separation, diarization)
|
27 |
+
|