Marco-Cheung
commited on
Commit
•
dd98e2f
1
Parent(s):
5099504
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,6 @@ asr_pipe = pipeline("automatic-speech-recognition", model=ASR_MODEL_NAME, chunk_
|
|
19 |
# update the generation config
|
20 |
MULTILINGUAL = True # set True for multilingual models, False for English-only
|
21 |
generation_config = GenerationConfig.from_pretrained("openai/whisper-large-v2")
|
22 |
-
#else:
|
23 |
-
#generation_config = GenerationConfig.from_pretrained("openai/whisper-medium.en")
|
24 |
-
generation_config.push_to_hub(ASR_MODEL_NAME)
|
25 |
|
26 |
|
27 |
# load text-to-speech checkpoint
|
|
|
19 |
# update the generation config
|
20 |
MULTILINGUAL = True # set True for multilingual models, False for English-only
|
21 |
generation_config = GenerationConfig.from_pretrained("openai/whisper-large-v2")
|
|
|
|
|
|
|
22 |
|
23 |
|
24 |
# load text-to-speech checkpoint
|