ayaanzaveri commited on
Commit
3d16b72
1 Parent(s): 7dc6f85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -50,6 +50,9 @@ def transcribe_video(video_url: str, beam_size: int = 5, model_size: str = "tiny
50
  print("done download")
51
  print("doing transcribe")
52
  segments, info = model.transcribe(f"{rand_id}.mp3", beam_size=beam_size, word_timestamps=word_timestamps)
 
 
 
53
  segments = [segment_to_dict(segment) for segment in segments]
54
  total_duration = round(info.duration, 2) # Same precision as the Whisper timestamps.
55
  print(info)
 
50
  print("done download")
51
  print("doing transcribe")
52
  segments, info = model.transcribe(f"{rand_id}.mp3", beam_size=beam_size, word_timestamps=word_timestamps)
53
+ print(info)
54
+ for segment in segments:
55
+ print(segment)
56
  segments = [segment_to_dict(segment) for segment in segments]
57
  total_duration = round(info.duration, 2) # Same precision as the Whisper timestamps.
58
  print(info)