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 01:06:19 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
3338077c18c57715afe53993a4b92e8ca1d8285c
viralfactory/src/engines/ScriptEngine/BaseScriptEngine.py

13 lines
223 B
Python
Raw Normal View History

:rocket:
2024-02-14 17:49:51 +01:00
from abc import ABC, abstractmethod
from ..BaseEngine import BaseEngine
class BaseScriptEngine(BaseEngine):
pass
@abstractmethod
def generate(self) -> str:
pass
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
def time_script(self):
...
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 26ms 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