vikit.gateways.ML_models_gateway

Overview

Classes

MLModelsGateway

This class is a gateway to a remote API hosting Machine Learning models as a service.

Classes

class vikit.gateways.ML_models_gateway.MLModelsGateway

Bases: abc.ABC

This class is a gateway to a remote API hosting Machine Learning models as a service. It abstracts the main features needed to interact with the API

Stubs inheriting from this class may be created for each model to be used so as to prevent dependencies on the actual API implementation and speed up tests

Overview

Methods

cleanse_llm_keywords_async(input)

-

compose_music_from_text_async(prompt_text, duration)

abc -

generate_background_music_async(duration, prompt, target_file_name)

abc -

generate_mp3_from_text_async(prompt_text, target_file)

-

generate_seine_transition_async(source_image_path, target_image_path)

abc -

generate_video_async(prompt, model_provider, aspect_ratio)

abc -

get_enhanced_prompt_async(subtitleText)

abc -

get_keywords_from_prompt_async(subtitleText, excluded_words)

abc -

get_music_generation_keywords_async(text)

abc -

get_subtitles_async(audiofile_path)

abc -

interpolate_async(video)

abc -

Members

cleanse_llm_keywords_async(input)
abstract compose_music_from_text_async(prompt_text: str, duration: int)
Async:

abstract generate_background_music_async(duration: int = 3, prompt: str = None, target_file_name: str = None) str
Async:

async generate_mp3_from_text_async(prompt_text, target_file)
abstract generate_seine_transition_async(source_image_path, target_image_path)
Async:

abstract generate_video_async(prompt, model_provider: str, aspect_ratio: tuple)
abstract get_enhanced_prompt_async(subtitleText)
Async:

abstract get_keywords_from_prompt_async(subtitleText, excluded_words: str = None)
Async:

abstract get_music_generation_keywords_async(text) str
Async:

abstract get_subtitles_async(audiofile_path: str)
Async:

abstract interpolate_async(video)
Async: