Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ model = AutoModel(
|
|
32 |
def transcribe_audio(file_path, vad_model="fsmn-vad", punc_model="ct-punc", vad_kwargs='{"max_single_segment_time": 30000}',
|
33 |
batch_size=1, language="auto", use_itn=True, batch_size_s=60,
|
34 |
merge_vad=True, merge_length_s=15, batch_size_threshold_s=50,
|
35 |
-
hotword=" ", spk_model="cam++", ban_emo_unk=
|
36 |
try:
|
37 |
vad_kwargs = json.loads(vad_kwargs)
|
38 |
|
@@ -73,7 +73,7 @@ inputs = [
|
|
73 |
gr.Slider(10, 100, value=50, step=1, label="Batch Size Threshold (seconds)"),
|
74 |
gr.Textbox(value=" ", label="Hotword"),
|
75 |
gr.Textbox(value="cam++", label="Speaker Model"),
|
76 |
-
gr.Checkbox(value=
|
77 |
]
|
78 |
|
79 |
outputs = gr.Textbox(label="Transcription")
|
|
|
32 |
def transcribe_audio(file_path, vad_model="fsmn-vad", punc_model="ct-punc", vad_kwargs='{"max_single_segment_time": 30000}',
|
33 |
batch_size=1, language="auto", use_itn=True, batch_size_s=60,
|
34 |
merge_vad=True, merge_length_s=15, batch_size_threshold_s=50,
|
35 |
+
hotword=" ", spk_model="cam++", ban_emo_unk=True):
|
36 |
try:
|
37 |
vad_kwargs = json.loads(vad_kwargs)
|
38 |
|
|
|
73 |
gr.Slider(10, 100, value=50, step=1, label="Batch Size Threshold (seconds)"),
|
74 |
gr.Textbox(value=" ", label="Hotword"),
|
75 |
gr.Textbox(value="cam++", label="Speaker Model"),
|
76 |
+
gr.Checkbox(value=True, label="Ban Emotional Unknown"),
|
77 |
]
|
78 |
|
79 |
outputs = gr.Textbox(label="Transcription")
|