vikit.video.prompt_based_video

Overview

Classes

PromptBasedVideo

PromptBasedVideo is a simple way to generate a video based out of a text prompt

Classes

class vikit.video.prompt_based_video.PromptBasedVideo(prompt: vikit.prompt.prompt.Prompt = None)

Bases: vikit.video.composite_video.CompositeVideo

PromptBasedVideo is a simple way to generate a video based out of a text prompt

It creates a master composite video which embeds as many composite video as there are subtitles in the given prompt.

We do some form of inheritance by composition to prevent circular dependencies and benefit from more modularity

Overview

Methods

compose(build_settings, ml_models_gateway)

Compose the inner composite video

get_title()

Get the title of the video, we recompute it every time

prepare_build(ml_models_gateway, build_settings)

Generate the actual inner video

Members

async compose(build_settings: vikit.video.video.VideoBuildSettings, ml_models_gateway)

Compose the inner composite video

Params:
  • build_settings: allow some customization

Returns:

The inner composite video

get_title()

Get the title of the video, we recompute it every time as the title of the video can change if we add or remove videos

async prepare_build(ml_models_gateway: vikit.gateways.ML_models_gateway.MLModelsGateway, build_settings=VideoBuildSettings())

Generate the actual inner video

Params:
  • build_settings: allow some customization

Returns:

The current instance