mahadewa commited on
Commit
a4a95ff
·
verified ·
1 Parent(s): de2d5fe

Update audio_agent.py

Browse files
Files changed (1) hide show
  1. audio_agent.py +1 -2
audio_agent.py CHANGED
@@ -56,8 +56,7 @@ class AudioAgent(BaseAgent):
56
 
57
  # Set task and language options
58
  generate_kwargs = {}
59
- if language:
60
- generate_kwargs["language"] = "auto"
61
 
62
  # Run the pipeline directly on the file
63
  result = pipe(
 
56
 
57
  # Set task and language options
58
  generate_kwargs = {}
59
+ generate_kwargs["language"] = "auto"
 
60
 
61
  # Run the pipeline directly on the file
62
  result = pipe(