Spaces:
Running
Running
Test Whisper decoding controls
Browse files
tests/test_whisper_service.py
CHANGED
|
@@ -54,6 +54,8 @@ def test_transcribe_sync_includes_word_timestamps() -> None:
|
|
| 54 |
{"word": " world", "start": 0.846, "end": 1.988, "probability": 0.987654},
|
| 55 |
]
|
| 56 |
assert model.calls[0]["word_timestamps"] is True
|
|
|
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
def test_transcribe_sync_can_disable_word_timestamps() -> None:
|
|
|
|
| 54 |
{"word": " world", "start": 0.846, "end": 1.988, "probability": 0.987654},
|
| 55 |
]
|
| 56 |
assert model.calls[0]["word_timestamps"] is True
|
| 57 |
+
assert model.calls[0]["condition_on_previous_text"] is True
|
| 58 |
+
assert model.calls[0]["temperature"] == 0.0
|
| 59 |
|
| 60 |
|
| 61 |
def test_transcribe_sync_can_disable_word_timestamps() -> None:
|