Spaces:
Runtime error
Runtime error
navinaananthan
commited on
Commit
·
82d7125
1
Parent(s):
1ef3084
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,8 @@ model = T5ForConditionalGeneration.from_pretrained(model_name)
|
|
34 |
'''
|
35 |
Importing necessary models for ASR module
|
36 |
'''
|
37 |
-
asr_processor = WhisperProcessor.from_pretrained("whisper-
|
38 |
-
asr_model = WhisperForConditionalGeneration.from_pretrained("whisper-
|
39 |
forced_decoder_ids = asr_processor.get_decoder_prompt_ids(language="sinhala", task="transcribe")
|
40 |
|
41 |
|
|
|
34 |
'''
|
35 |
Importing necessary models for ASR module
|
36 |
'''
|
37 |
+
asr_processor = WhisperProcessor.from_pretrained("openai/whisper-large-v2")
|
38 |
+
asr_model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-large-v2")
|
39 |
forced_decoder_ids = asr_processor.get_decoder_prompt_ids(language="sinhala", task="transcribe")
|
40 |
|
41 |
|