Spaces:
Sleeping
Sleeping
Commit
·
2fc3093
1
Parent(s):
ae4df90
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, WhisperProcessor
|
|
3 |
|
4 |
# Load the model and tokenizer
|
5 |
model_id = "openai/whisper-medium"
|
6 |
-
model =
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
8 |
|
9 |
# Create a WhisperProcessor instance
|
|
|
3 |
|
4 |
# Load the model and tokenizer
|
5 |
model_id = "openai/whisper-medium"
|
6 |
+
model = WhisperProcessor.from_pretrained(model_id)
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
8 |
|
9 |
# Create a WhisperProcessor instance
|