Files
viralfactory/src/engines/BaseEngine.py
2024-02-15 17:53:02 +01:00

20 lines
356 B
Python

import gradio as gr
from abc import ABC, abstractmethod
from ..chore import GenerationContext
class BaseEngine(ABC):
num_options: int
name: str
description: str
def __init__(self):
self.ctx: GenerationContext # This is for type hinting only
pass
@classmethod
@abstractmethod
def get_options():
...