devingulliver commited on
Commit
e846051
·
verified ·
1 Parent(s): 37af064

switch to distil medium, cleanup code

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -2,11 +2,10 @@ import gradio as gr
2
  import spaces
3
  import torch
4
  import io
5
- import os.path
6
- from huggingface_hub import hf_hub_download
7
  import whisper
 
8
 
9
- model_path = hf_hub_download(repo_id="distil-whisper/distil-large-v3-openai", filename="model.bin")
10
 
11
  writer = whisper.utils.get_writer("srt", "/dev/null")
12
 
 
2
  import spaces
3
  import torch
4
  import io
 
 
5
  import whisper
6
+ from huggingface_hub import hf_hub_download
7
 
8
+ model_path = hf_hub_download(repo_id="distil-whisper/distil-medium.en", filename="original-model.bin")
9
 
10
  writer = whisper.utils.get_writer("srt", "/dev/null")
11