Files
facefusion-api/app/schemas/system.py
Sebastian Krüger 800edc08ea Initial commit: FaceFusion REST API
FastAPI wrapper around FaceFusion v3.5.3 submodule with:
- Sync and async (job-based) processing endpoints
- FaceFusion bridge with manual key registration and Lock-serialized processing
- Multi-target Dockerfile (CPU + CUDA GPU)
- Docker Compose configs for dev, prod-cpu, and prod-gpu
- Gitea CI/CD workflow with dual image builds
- All 11 FaceFusion processors supported via options API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 12:58:33 +01:00

34 lines
641 B
Python

from typing import Any, Dict, List, Optional
from pydantic import BaseModel
class HealthResponse(BaseModel):
status: str = 'ok'
class GpuDevice(BaseModel):
id: int
name: str
memory_total: Optional[int] = None
memory_used: Optional[int] = None
class SystemInfoResponse(BaseModel):
execution_providers: List[str]
gpu_devices: List[GpuDevice]
cpu_count: Optional[int] = None
memory_total: Optional[int] = None
memory_available: Optional[int] = None
class ProcessorInfo(BaseModel):
name: str
models: List[str]
class ModelInfo(BaseModel):
name: str
path: str
size_bytes: int