handlers.prompt_by_raw_usertext_handler

Overview

Classes

class handlers.prompt_by_raw_usertext_handler.PromptByRawUserTextHandler

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.

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