sanchit-gandhi HF staff commited on
Commit
d36143c
·
1 Parent(s): c0bc0f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -20,8 +20,7 @@ model.to(device)
20
  sampling_rate = processor.feature_extractor.sampling_rate
21
 
22
  bos_token_id = processor.tokenizer.all_special_ids[-106]
23
- decoder_input_ids = torch.tensor([bos_token_id])
24
- decoder_input_ids.to(device)
25
 
26
 
27
  def process_audio_file(file):
@@ -78,7 +77,7 @@ iface = gr.Interface(
78
  layout="horizontal",
79
  theme="huggingface",
80
  title="Whisper Language Identification",
81
- description="Demo for Language Identification using OpenAI's [Whisper Large V2](https://huggingface.co/openai/whisper-large-v2)",
82
  allow_flagging='never',
83
  )
84
  iface.launch(enable_queue=True)
 
20
  sampling_rate = processor.feature_extractor.sampling_rate
21
 
22
  bos_token_id = processor.tokenizer.all_special_ids[-106]
23
+ decoder_input_ids = torch.tensor([bos_token_id]).to(device)
 
24
 
25
 
26
  def process_audio_file(file):
 
77
  layout="horizontal",
78
  theme="huggingface",
79
  title="Whisper Language Identification",
80
+ description="Demo for Language Identification using OpenAI's [Whisper Large V2](https://huggingface.co/openai/whisper-large-v2).",
81
  allow_flagging='never',
82
  )
83
  iface.launch(enable_queue=True)