Commit Graph

12 Commits

Author SHA1 Message Date
801a275d14 Add support for vision in LLM engines 2024-05-22 15:56:17 +02:00
8ba28bd1df 🚨 Remove unnecessary parameter max_choices=1 when multiselect=False 2024-05-03 09:15:32 +02:00
6c55387e39 👽 fix(OpenaiLLMEngine): Add newest gpt-4-turbo model 2024-04-21 21:41:25 +02:00
be3776e1ce Some changes 2024-02-29 16:51:40 +01:00
9f91132a0a Formatting 2024-02-23 13:12:48 +01:00
2a102c62e3 Formatting 2024-02-23 09:56:54 +01:00
32b6b5c42e Formatting & improving imports 2024-02-23 09:50:43 +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
bf03e0a766 Fix a commit error 2024-02-15 17:53:46 +01:00
5be7937ffa 🚀 Maaany things 2024-02-15 14:11:16 +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