mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 03:52:10 +00:00
core[patch]: Add kwargs to Runnable (#27008)
Fixes #26685 --------- Co-authored-by: Tibor Reiss <tibor.reiss@gmail.com>
This commit is contained in:
@@ -471,7 +471,8 @@ class RivaASR(
|
||||
def invoke(
|
||||
self,
|
||||
input: ASRInputType,
|
||||
_: Optional[RunnableConfig] = None,
|
||||
config: Optional[RunnableConfig] = None,
|
||||
**kwargs: Any,
|
||||
) -> ASROutputType:
|
||||
"""Transcribe the audio bytes into a string with Riva."""
|
||||
# create an output text generator with Riva
|
||||
@@ -567,7 +568,10 @@ class RivaTTS(
|
||||
) from err
|
||||
|
||||
def invoke(
|
||||
self, input: TTSInputType, _: Union[RunnableConfig, None] = None
|
||||
self,
|
||||
input: TTSInputType,
|
||||
config: Optional[RunnableConfig] = None,
|
||||
**kwargs: Any,
|
||||
) -> TTSOutputType:
|
||||
"""Perform TTS by taking a string and outputting the entire audio file."""
|
||||
return b"".join(self.transform(iter([input])))
|
||||
|
Reference in New Issue
Block a user