diff --git a/etna/core/blocks/image.py b/etna/core/blocks/image.py index 63a149c0c..e138e9517 100644 --- a/etna/core/blocks/image.py +++ b/etna/core/blocks/image.py @@ -63,6 +63,22 @@ def get_api_representation(self, value, context=None): "width": webp_image.width, "height": webp_image.height, }, + "transcript": ( + { + "heading": value.get_transcription_heading_display(), + "text": value.transcription, + } + if value.transcription + else None + ), + "translation": ( + { + "heading": value.get_translation_heading_display(), + "text": value.translation, + } + if value.translation + else None + ), } return None