Beijuka commited on
Commit
51d0d81
·
verified ·
1 Parent(s): 814e0fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ os.makedirs("responses", exist_ok=True)
37
  # Transcription function
38
  device = 0 if torch.cuda.is_available() else -1
39
  def transcribe(audio, language):
40
- asr = pipeline("automatic-speech-recognition", model=model_map[language], device=device)
41
  text = asr(audio)["text"]
42
  return text, audio
43
 
 
37
  # Transcription function
38
  device = 0 if torch.cuda.is_available() else -1
39
  def transcribe(audio, language):
40
+ asr = pipeline("automatic-speech-recognition", model=model_map[language], device=device, token=HF_TOKEN)
41
  text = asr(audio)["text"]
42
  return text, audio
43