vericudebuget commited on
Commit
b4bfd19
·
verified ·
1 Parent(s): b45ed63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,9 +17,9 @@ if 'srt_content' not in st.session_state:
17
 
18
  @st.cache_resource
19
  def load_model():
20
- model_id = "openai/whisper-large-v3-turbo"
21
  model = AutoModelForSpeechSeq2Seq.from_pretrained(
22
- model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
23
  ).to(device)
24
  processor = AutoProcessor.from_pretrained(model_id)
25
  pipe = pipeline(
 
17
 
18
  @st.cache_resource
19
  def load_model():
20
+ model_id = "openai/whisper-tiny"
21
  model = AutoModelForSpeechSeq2Seq.from_pretrained(
22
+ model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=False, use_safetensors=True
23
  ).to(device)
24
  processor = AutoProcessor.from_pretrained(model_id)
25
  pipe = pipeline(