mahadewa commited on
Commit
207365d
·
verified ·
1 Parent(s): 17ea9f2

Update audio_agent.py

Browse files
Files changed (1) hide show
  1. audio_agent.py +3 -2
audio_agent.py CHANGED
@@ -16,7 +16,8 @@ class AudioAgent(BaseAgent):
16
 
17
  def __call__(self, question: str, file_name: str, **kwargs) -> str:
18
  print(f"AudioAgent: Transcribing file: {file_name}")
19
-
 
20
  try:
21
  if file_name:
22
 
@@ -59,7 +60,7 @@ class AudioAgent(BaseAgent):
59
 
60
  # Set task and language options
61
  generate_kwargs = {}
62
- generate_kwargs["language"] = "auto"
63
 
64
  # Run the pipeline directly on the file
65
  result = pipe(
 
16
 
17
  def __call__(self, question: str, file_name: str, **kwargs) -> str:
18
  print(f"AudioAgent: Transcribing file: {file_name}")
19
+ final_answer = "Unknown"
20
+
21
  try:
22
  if file_name:
23
 
 
60
 
61
  # Set task and language options
62
  generate_kwargs = {}
63
+ generate_kwargs["language"] = "english"
64
 
65
  # Run the pipeline directly on the file
66
  result = pipe(