Update canals to 0.5.0 (#5564)

* Update canals to 0.5.0

* Fix RemoteWhisperTranscriber serialisation
This commit is contained in:
Silvano Cerza 2023-08-14 20:08:34 +02:00 committed by GitHub
parent c26f1e9426
commit bb7af3827d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -54,6 +54,12 @@ class RemoteWhisperTranscriber:
self.whisper_params = whisper_params or {}
self.model_name = model_name
self.init_parameters = {
"api_key": self.api_key,
"model_name": self.model_name,
"api_base": self.api_base,
"whisper_params": self.whisper_params,
}
@component.output_types(documents=List[Document])
def run(self, audio_files: List[Path], whisper_params: Optional[Dict[str, Any]] = None):

View File

@ -80,7 +80,7 @@ dependencies = [
"jsonschema",
# Preview
"canals==0.4.0",
"canals==0.5.0",
# Agent events
"events",