Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|
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...")
|
|
|
|