juan-op commited on
Commit
7e2338d
·
1 Parent(s): dda9803

Changed whisper model back to tiny

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def download_audio(url: str, path: str) -> None:
22
 
23
  def transcribe(path: str) -> List[str]:
24
  """Transcribes the audio file at the given path and returns the text."""
25
- model = whisper.load_model("base")
26
  transcription = model.transcribe(path)["text"]
27
  transcription_chunks = [transcription[i : i + 1000] for i in range(0, len(transcription), 1000)]
28
  return transcription_chunks
 
22
 
23
  def transcribe(path: str) -> List[str]:
24
  """Transcribes the audio file at the given path and returns the text."""
25
+ model = whisper.load_model("tiny")
26
  transcription = model.transcribe(path)["text"]
27
  transcription_chunks = [transcription[i : i + 1000] for i in range(0, len(transcription), 1000)]
28
  return transcription_chunks