Pin Applio 3.6.5 and verified basis assets, migrate private voice provenance, and coordinate conversion/live/training with Deck GPU leases. Prepare an inactive voice profile and a restricted studio container. Move CUDA and Torch caches out of the small temporary filesystem to prevent OmniVoice reference failures. Package app updates from the explicit allowlist in one Docker layer.
30 lines
961 B
Python
30 lines
961 B
Python
"""System information endpoint."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from ..adapters.runner import get_runner
|
|
from ..config import get_settings
|
|
|
|
router = APIRouter(tags=["system"])
|
|
|
|
|
|
@router.get("/system")
|
|
def system_info():
|
|
settings = get_settings()
|
|
runner = get_runner()
|
|
return {
|
|
"runner": runner.name(),
|
|
"runner_available": runner.is_available(),
|
|
"applio_path": str(settings.applio_path),
|
|
"applio_container": settings.applio_container,
|
|
"models_dir": str(settings.models_dir),
|
|
"datasets_dir": str(settings.datasets_dir),
|
|
"jobs_dir": str(settings.jobs_dir),
|
|
"results_dir": str(settings.results_dir),
|
|
"uploads_dir": str(settings.uploads_dir),
|
|
"max_upload_size_mb": settings.max_upload_size_mb,
|
|
"allowed_audio_formats": sorted(settings.allowed_formats_set),
|
|
"job_retention_days": settings.job_retention_days,
|
|
"log_level": settings.log_level,
|
|
}
|