feat: 新增代码

This commit is contained in:
Daniel
2026-04-07 00:37:39 +08:00
commit 8d0b729f2f
29 changed files with 1768 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from abc import ABC, abstractmethod
from typing import Any, Dict
class BaseVideoBackend(ABC):
backend_name: str
model_name: str
@abstractmethod
def load(self) -> None:
raise NotImplementedError
@abstractmethod
def is_loaded(self) -> bool:
raise NotImplementedError
@abstractmethod
def generate(self, task_id: str, request_data: Dict[str, Any], output_dir: str) -> Dict[str, str]:
raise NotImplementedError