Skip to content

Commit

Permalink
docs: add return types in docstring for transcribe and run function (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
aazam-gh authored Oct 28, 2023
1 parent 8a2a3c9 commit 3f3d2c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions haystack/nodes/audio/whisper_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def transcribe(
:param return_segments: If True, returns the transcription for each segment of the audio file. Supported with
local installation of whisper only.
:param translate: If True, translates the transcription to English.
:return: A dictionary containing the transcription text and metadata like timings, segments etc.
"""
transcript: Dict[str, Any] = {}
Expand Down Expand Up @@ -176,6 +177,8 @@ def run(
:param labels: Ignored
:param documents: Ignored
:param meta: Ignored
:return: A dictionary containing a list of Document objects, one for each input file.
"""
transcribed_documents: List[Document] = []
if file_paths:
Expand Down

0 comments on commit 3f3d2c3

Please sign in to comment.