tu101 commited on
Commit
159bf68
·
verified ·
1 Parent(s): 196b889
Files changed (1) hide show
  1. tools.py +1 -2
tools.py CHANGED
@@ -48,8 +48,7 @@ def audio_search(path: str) -> str:
48
  Args:
49
  path: The path to the file. If the file attached is just {name}.mp3, then it is local, and just use {name}.mp3. """
50
  aai.settings.api_key = "945f7d6c00f142158322cd0c13901024"
51
- audio_file = "./"+path
52
- loader = AssemblyAIAudioTranscriptLoader(file_path=audio_file, transcript_format=TranscriptFormat.PARAGRAPHS)
53
 
54
  raw_docs = loader.load()
55
  # convert each Document into a serializable dict
 
48
  Args:
49
  path: The path to the file. If the file attached is just {name}.mp3, then it is local, and just use {name}.mp3. """
50
  aai.settings.api_key = "945f7d6c00f142158322cd0c13901024"
51
+ loader = AssemblyAIAudioTranscriptLoader(file_path=path, transcript_format=TranscriptFormat.PARAGRAPHS)
 
52
 
53
  raw_docs = loader.load()
54
  # convert each Document into a serializable dict