Spaces:
Build error
Build error
Commit ·
5a9bc4c
1
Parent(s): ed4777c
Remove Initial Prompt From Whisper Turbo
Browse files
src/models/whisper_turbo_model.py
CHANGED
|
@@ -72,8 +72,6 @@ def run_whisper_turbo(
|
|
| 72 |
"return_timestamps": "word",
|
| 73 |
"generate_kwargs": generate_kwargs,
|
| 74 |
}
|
| 75 |
-
if initial_prompt:
|
| 76 |
-
call_kwargs["initial_prompt"] = initial_prompt
|
| 77 |
|
| 78 |
raw_output = pipe(audio_file, **call_kwargs)
|
| 79 |
infer_end = time.perf_counter()
|
|
|
|
| 72 |
"return_timestamps": "word",
|
| 73 |
"generate_kwargs": generate_kwargs,
|
| 74 |
}
|
|
|
|
|
|
|
| 75 |
|
| 76 |
raw_output = pipe(audio_file, **call_kwargs)
|
| 77 |
infer_end = time.perf_counter()
|