Skip to content

Commit

Permalink
fixing an error in audio.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BirenMer committed Dec 22, 2024
1 parent cb4e6ac commit e2f8722
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def lazy_parse(self, blob: Blob) -> Iterator[Document]:
model="whisper-1", file=file_obj, **self._create_params
)
else:
transcript = openai.Audio.transcribe("whisper-1", file_obj) # type: ignore[attr-defined]
transcript = openai.audio.transcriptions.create(model="whisper-1", file=file_obj,) # type: ignore[attr-defined]

Check failure on line 332 in libs/community/langchain_community/document_loaders/parsers/audio.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff (E501)

langchain_community/document_loaders/parsers/audio.py:332:89: E501 Line too long (107 > 88)

Check failure on line 332 in libs/community/langchain_community/document_loaders/parsers/audio.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff (E501)

langchain_community/document_loaders/parsers/audio.py:332:89: E501 Line too long (107 > 88)
break
except Exception as e:
attempts += 1
Expand Down

0 comments on commit e2f8722

Please sign in to comment.