Logo
Explore Help
Sign In
Paillat-dev/viralfactory
1
0
Fork 0
You've already forked viralfactory
mirror of https://github.com/Paillat-dev/viralfactory.git synced 2026-01-02 17:24:54 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
3ca3732102827be93cd23e9bc72603cafb842f35
viralfactory/src/engines/NoneEngine.py

15 lines
234 B
Python
Raw Normal View History

🐛 fix(GenerationContext.py): fix import statements and add support for captioning engine ✨ feat(GenerationContext.py): add support for captioning engine in the GenerationContext class The import statement for the `moviepy.editor` module is changed to `moviepy.editor as mp` to improve code readability. Additionally, the `gradio` module is imported as `gr` to improve code readability. The `GenerationContext` class now includes a `captioningengine` parameter and initializes a `captioningengine` attribute. The `setup_dir` method is modified to include a call to create a directory for the output files. The `get_file_path` method is modified to return the file path based on the output directory. The `process` method is modified to include additional steps for captioning. The `timed_script` attribute is added to store the result of the `ttsengine.synthesize` method. The `captioningengine` is used to generate captions and store them in the `captions` attribute. The final video is rendered using the `moviepy` library and saved as "final.mp4" in the output directory.
2024-02-17 18:47:30 +01:00
from . import BaseEngine
class NoneEngine(BaseEngine):
num_options = 0
name = "None"
description = "No engine selected"
def __init__(self):
pass
@classmethod
def get_options(cls):
return []
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 107ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API