Achitha commited on
Commit
39c4239
·
1 Parent(s): 24dce6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import pytube as pt
5
  from transformers import pipeline
6
  from huggingface_hub import model_info
7
 
8
- MODEL_NAME = "Achitha/whisper_small_ta" #this always needs to stay in line 8 :D sorry for the hackiness
9
  lang = "ta"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
@@ -16,7 +16,7 @@ pipe = pipeline(
16
  device=device,
17
  )
18
 
19
- pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=lang, task="translate")
20
 
21
  def transcribe(microphone, file_upload):
22
  warn_output = ""
 
5
  from transformers import pipeline
6
  from huggingface_hub import model_info
7
 
8
+ MODEL_NAME = "parambharat/whisper-small-ta" #this always needs to stay in line 8 :D sorry for the hackiness
9
  lang = "ta"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
 
16
  device=device,
17
  )
18
 
19
+ pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
20
 
21
  def transcribe(microphone, file_upload):
22
  warn_output = ""