Commit Graph

140 Commits

Author SHA1 Message Date
59ba7b8bf6 Add SettingsEngine module 2024-02-18 22:50:01 +01:00
56ae10301a Add image resizing in DallEAssetsEngine 2024-02-18 22:49:56 +01:00
3a4e032799 Add SettingsEngine to ENGINES dictionary 2024-02-18 22:49:45 +01:00
32fa60c92a Add settings engine to GenerationContext & load resolution from them 2024-02-18 22:49:36 +01:00
517d6db8a6 Update Pillow version in requirements.txt 2024-02-18 22:42:56 +01:00
6c48e19af0 Add AssetsEngine and related files 2024-02-18 00:56:49 +01:00
e3229518d4 🐛 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
eedbc99121 Update gradio_ui.py with engine selection and multiselect support 2024-02-16 20:21:22 +01:00
1d32bc38d0 Update UI tab names in gradio_ui.py 2024-02-16 13:57:36 +01:00
9c55b04bcd Add 'output/' to .gitignore 2024-02-15 18:14:10 +01:00
bb84d673f3 Update results variable to access words from segments in BaseTTSEngine.py 2024-02-15 18:13:48 +01:00
99f34ba5cb Merge branch 'main' of https://github.com/Paillat-dev/viralautomator 2024-02-15 18:03:24 +01:00
a42987d864 Add get_file_path method to GenerationContext class 2024-02-15 18:03:09 +01:00
8479255aef Create FUNDING.yml 2024-02-15 17:59:34 +01:00
4d8556c80a Fix typo in CoquiTTSEngine.py 2024-02-15 17:57:49 +01:00
e3deafbf75 Fix dict key 2024-02-15 17:54:21 +01:00
45a48cfa49 Formatting 2024-02-15 17:54:13 +01:00
a32f339981 Implement the actual code 2024-02-15 17:53:59 +01:00
bf03e0a766 Fix a commit error 2024-02-15 17:53:46 +01:00
e8cf4bad50 Formatting 2024-02-15 17:53:27 +01:00
53b627f4ed Add anthropic llm engine 2024-02-15 17:53:18 +01:00
368b7bb375 Formatting and type hinting 2024-02-15 17:53:02 +01:00
dee544a26c Add new engines and fix naming 2024-02-15 17:52:47 +01:00
2e8e371e9b import utils and chore 2024-02-15 17:52:33 +01:00
67237a5ecf Fix import, fix option indices in init, formatting 2024-02-15 17:52:19 +01:00
c57817df85 Add newline at the end of file 2024-02-15 17:50:06 +01:00
3338077c18 Add BaseEngine and GenerationContext classes to gradio_ui.py 2024-02-15 17:49:06 +01:00
a8da179269 Add shower thoughts script template 2024-02-15 17:48:53 +01:00
e90ec054d5 Refactor GenerationContext class 2024-02-15 17:48:47 +01:00
3cf9e46d53 Add dotenv package and load environment variables 2024-02-15 17:48:32 +01:00
e020157cdd Add python-dotenv package to requirements.txt 2024-02-15 17:42:45 +01:00
02c168f349 ⬆️ chore(requirements.txt): add anthropic library version 0.16.0
The anthropic library version 0.16.0 is added to the requirements.txt file. This library is necessary for a new feature that requires anthropic functionality.
2024-02-15 14:12:26 +01:00
5be7937ffa 🚀 Maaany things 2024-02-15 14:11:16 +01:00
57bcf0af8e fix(GenerationContext.py): fix typo in variable name powerfulllmengine to powerfulllmengine for better readability
feat(GenerationContext.py): add setup_dir method to create a directory for output files with a timestamp
feat(GenerationContext.py): call setup_dir method before generating script and synthesizing audio to ensure output directory exists
feat(prompts/fix_captions.yaml): add a new prompt file to provide instructions for fixing captions
fix(BaseTTSEngine.py): add force_duration method to adjust audio clip duration if it exceeds a specified duration
feat(CoquiTTSEngine.py): add options for forcing duration and specifying duration in the UI
feat(utils/prompting.py): add get_prompt function to load prompt files from a specified location
fix(gradio_ui.py): set equal_height=True for engine_rows to ensure consistent height for engine options
2024-02-15 12:27:13 +01:00
9f88e6d069 feat(GenerationContext.py): add new file GenerationContext.py to handle the context of generation engines
feat(OpenaiLLMEngine.py): add orjson library for JSON serialization and deserialization, and implement the generate method to make API call to OpenAI chat completions endpoint

feat(__init__.py): import OpenaiLLMEngine in LLMEngine package

feat(BaseScriptEngine.py): add time_script method to the BaseScriptEngine class

feat(CustomScriptEngine.py): add new file CustomScriptEngine.py to handle custom script generation, implement generate method to return the provided script, and add get_options method to provide a textbox for the prompt input

feat(__init__.py): import CustomScriptEngine in ScriptEngine package

feat(__init__.py): import LLMEngine package and add OpenaiLLMEngine to the ENGINES dictionary

refactor(gradio_ui.py): change equal_height attribute of Row to False to allow different heights for input blocks
2024-02-15 11:23:36 +01:00
0594458865 🚀 2024-02-14 17:49:51 +01:00
79d81b96b1 E 2024-02-13 14:29:49 +01:00
e8121e3e8d Some stuff 2024-02-13 14:15:27 +01:00
3567b9dc75 Create LICENSE 2024-02-12 16:09:11 +01:00
935a4ad481 Initial commit 2024-02-12 16:07:40 +01:00