vikit.gateways.ML_models_gateway¶
Overview¶
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.ABCThis 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 -
abc -
get_subtitles_async(audiofile_path)abc -
interpolate_async(video)abc -
Members
- cleanse_llm_keywords_async(input)¶
- 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 get_enhanced_prompt_async(subtitleText)¶
- Async:
- abstract interpolate_async(video)¶
- Async: