mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 17:24:54 +00:00
20 lines
356 B
Python
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():
|
|
...
|