DarwinAnim8or commited on
Commit
2fc3093
·
1 Parent(s): ae4df90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = AutoModelForSeq2SeqLM.from_pretrained(model_id)
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