DeeeeeeM
commited on
Commit
·
ee711bf
1
Parent(s):
7716a94
Readded demucs into result process
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def process_media(
|
|
| 30 |
model = stable_whisper.load_model(model_size, device=device)
|
| 31 |
|
| 32 |
try:
|
| 33 |
-
result = model.transcribe(temp_path, language=source_lang, vad=True, regroup=False, no_speech_threshold=0.9)
|
| 34 |
#remove background music/noise: denoiser="demucs"
|
| 35 |
#result.save_as_json(word_transcription_path)
|
| 36 |
except Exception as e:
|
|
@@ -317,7 +317,7 @@ with gr.Blocks() as interface:
|
|
| 317 |
"tiny"
|
| 318 |
],
|
| 319 |
label="Model Size",
|
| 320 |
-
value="large-
|
| 321 |
interactive=True
|
| 322 |
)
|
| 323 |
|
|
|
|
| 30 |
model = stable_whisper.load_model(model_size, device=device)
|
| 31 |
|
| 32 |
try:
|
| 33 |
+
result = model.transcribe(temp_path, language=source_lang, vad=True, regroup=False, no_speech_threshold=0.9, denoiser="demucs")
|
| 34 |
#remove background music/noise: denoiser="demucs"
|
| 35 |
#result.save_as_json(word_transcription_path)
|
| 36 |
except Exception as e:
|
|
|
|
| 317 |
"tiny"
|
| 318 |
],
|
| 319 |
label="Model Size",
|
| 320 |
+
value="deepdml/faster-whisper-large-v3-turbo-ct2",
|
| 321 |
interactive=True
|
| 322 |
)
|
| 323 |
|