module documentation

This module is used to translate the image captions to English via OpenAI API.

Class CaptionTranslator Translate the image captions to English via OpenAI API.
Function compress_json Compress the json file to xz format.
Function main Entrypoint.
def compress_json(json_path: Path, xz_path: Path): (source)

Compress the json file to xz format.

Parameters
json_path:Pathpath of the json file be compressed.
xz_path:Pathpath of the xz file.
def main(): (source)

Entrypoint.