fargerm commited on
Commit
dd27423
1 Parent(s): 8947a3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -11,7 +11,7 @@ torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
11
  # Load Whisper model
12
  whisper_model_id = "openai/whisper-large-v3"
13
  whisper_model = AutoModelForSpeechSeq2Seq.from_pretrained(
14
- whisper_model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
15
  ).to(device)
16
  whisper_processor = AutoProcessor.from_pretrained(whisper_model_id)
17
  whisper_pipe = pipeline(
@@ -68,5 +68,3 @@ if uploaded_file:
68
  # Streamlit run command
69
  if __name__ == "__main__":
70
  st.write("Running Streamlit app...")
71
-
72
-
 
11
  # Load Whisper model
12
  whisper_model_id = "openai/whisper-large-v3"
13
  whisper_model = AutoModelForSpeechSeq2Seq.from_pretrained(
14
+ whisper_model_id, torch_dtype=torch_dtype, use_safetensors=True
15
  ).to(device)
16
  whisper_processor = AutoProcessor.from_pretrained(whisper_model_id)
17
  whisper_pipe = pipeline(
 
68
  # Streamlit run command
69
  if __name__ == "__main__":
70
  st.write("Running Streamlit app...")