fix all_tokens handling that caused more repetitions and discrepancy in JSON (#1060)

This commit is contained in:
Jong Wook Kim
2023-03-08 18:34:07 -05:00
committed by GitHub
parent aac47c9834
commit 38f2f4d99d
3 changed files with 14 additions and 11 deletions

View File

@@ -17,6 +17,7 @@ def test_transcribe(model_name: str):
audio_path, language=language, temperature=0.0, word_timestamps=True
)
assert result["language"] == "en"
assert result["text"] == "".join([s["text"] for s in result["segments"]])
transcription = result["text"].lower()
assert "my fellow americans" in transcription