From c9a82c8206457dd58ad7f73919a092509c7cfe83 Mon Sep 17 00:00:00 2001 From: Vivitsa Shankar Date: Thu, 4 Jan 2024 16:08:21 +0530 Subject: [PATCH] modified annotations for result_dict inside function get_transcripts_from_utterances --- dialogy/plugins/text/dob_plugin/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dialogy/plugins/text/dob_plugin/__init__.py b/dialogy/plugins/text/dob_plugin/__init__.py index 5623773d..32b7326e 100644 --- a/dialogy/plugins/text/dob_plugin/__init__.py +++ b/dialogy/plugins/text/dob_plugin/__init__.py @@ -123,9 +123,9 @@ def get_transcripts_from_utterances(utterances: List[Utterance], func_transcript output: best_transcript, """ - result_dict: Dict[str, float] = {} + result_dict: Dict[str, Any] = {} transcripts: List[str] = [] - + for utterance_set in utterances: for utterance in utterance_set: transcript = utterance.get('transcript')