benderrodriguez commited on
Commit
cac56e9
1 Parent(s): e909a74

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -3
README.md CHANGED
@@ -27,9 +27,7 @@ model = faster_whisper.WhisperModel('ivrit-ai/faster-whisper-v2-d4')
27
 
28
  segs, _ = model.transcribe('media-file', language='he')
29
 
30
- texts = []
31
- for s in segs:
32
- texts.append(s.text)
33
 
34
  transcribed_text = ' '.join(texts)
35
  print(f'Transcribed text: {transcribed_text}')
 
27
 
28
  segs, _ = model.transcribe('media-file', language='he')
29
 
30
+ texts = [s.text for s in segs]
 
 
31
 
32
  transcribed_text = ' '.join(texts)
33
  print(f'Transcribed text: {transcribed_text}')