Skip to content

Commit

Permalink
fix asr import
Browse files Browse the repository at this point in the history
  • Loading branch information
abdeladim-s committed Jun 2, 2023
1 parent b23fa10 commit 3006094
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easymms/models/asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ def transcribe(self,
cwd = os.getcwd()
os.chdir(constants.FAIRSEQ_DIR)
from examples.speech_recognition.new.infer import hydra_main
os.chdir(cwd)

processed_files = self._prepare_media_files(media_files)
self._setup_tmp_dir(processed_files)
Expand Down Expand Up @@ -187,6 +186,8 @@ def transcribe(self,
res.append(segments)
else:
res = transcripts

os.chdir(cwd)
return res

@staticmethod
Expand Down

0 comments on commit 3006094

Please sign in to comment.