Jayashree Sridhar commited on
Commit
acc777a
·
1 Parent(s): 78c1e7f

modified transformer calling pipeline

Browse files
Files changed (1) hide show
  1. agents/tools/voice_tools.py +1 -1
agents/tools/voice_tools.py CHANGED
@@ -34,7 +34,7 @@ class MultilingualVoiceProcessor:
34
  # )
35
  self.pipe = pipeline(
36
  "automatic-speech-recognition",
37
- model=model,
38
  device=device,
39
  generate_kwargs={"task": "transcribe", "return_timestamps": False},
40
  )
 
34
  # )
35
  self.pipe = pipeline(
36
  "automatic-speech-recognition",
37
+ model=model_name,
38
  device=device,
39
  generate_kwargs={"task": "transcribe", "return_timestamps": False},
40
  )