handlers.prompt_by_keywords_handler

Overview

Classes

class handlers.prompt_by_keywords_handler.PromptByKeywordsHandler

Bases: vikit.common.handler.Handler

Overview

Methods

execute_async(text_prompt, ml_models_gateway, **kwargs)

Process the text prompt to generate a better one more suited to generate a video, and a title

Members

async execute_async(text_prompt: str, ml_models_gateway, **kwargs)

Process the text prompt to generate a better one more suited to generate a video, and a title summarizing the prompt.

Note: the excluded words feature is not used even if supported by the gateway, this may be activated back in the future if it is found to be useful for the overall video direction

Parameters:
  • prompt (str) -- The prompt to generate the keywords from

  • build_settings (PromptBuildSettings) -- The build settings

Returns:

a string containing a list of keywords to be used for video generation