Remove Seed-VC after failed German quality test

This commit is contained in:
Mikei386
2026-09-09 22:03:31 +02:00
parent 4cdd837482
commit 0e45518e6e
13 changed files with 16 additions and 194 deletions
@@ -36,8 +36,6 @@ VOICE_LABEL_KEY = "com.mike-ai.voice-worker"
VOICE_WORKER = os.environ.get("VOICE_WORKER", "").strip()
VOICE_CHANGE_LABEL_KEY = "com.mike-ai.voice-change-worker"
VOICE_CHANGE_WORKER = os.environ.get("VOICE_CHANGE_WORKER", "").strip()
SEED_VC_LABEL_KEY = "com.mike-ai.seed-vc-worker"
SEED_VC_WORKER = os.environ.get("SEED_VC_WORKER", "").strip()
APPLIO_LABEL_KEY = "com.mike-ai.applio-worker"
APPLIO_WORKER = os.environ.get("APPLIO_WORKER", "").strip()
LOCK = threading.Lock()
@@ -152,17 +150,6 @@ def voice_change_container() -> dict:
return matches[0]
def seed_vc_container() -> dict:
if not SEED_VC_WORKER:
raise RuntimeError("Seed-VC worker is not configured")
matches = [item for item in labelled_containers(SEED_VC_LABEL_KEY)
if item.get("Labels", {}).get(SEED_VC_LABEL_KEY) == SEED_VC_WORKER]
if len(matches) != 1:
raise RuntimeError(
f"expected exactly one Seed-VC worker {SEED_VC_WORKER!r}, found {len(matches)}")
return matches[0]
def applio_container() -> dict:
if not APPLIO_WORKER:
raise RuntimeError("Applio worker is not configured")
@@ -194,11 +181,6 @@ def stop_voice_change_if_configured() -> None:
stop_container(voice_change_container(), timeout=30)
def stop_seed_vc_if_configured() -> None:
if SEED_VC_WORKER:
stop_container(seed_vc_container(), timeout=30)
def stop_applio_if_configured() -> None:
if APPLIO_WORKER:
stop_container(applio_container(), timeout=30)
@@ -209,8 +191,6 @@ def stop_voice_tools(except_kind: str | None = None) -> None:
stop_voice_if_configured()
if except_kind != "voicechange":
stop_voice_change_if_configured()
if except_kind != "seedvc":
stop_seed_vc_if_configured()
if except_kind != "applio":
stop_applio_if_configured()
@@ -348,26 +328,6 @@ def set_voice_change_worker(running: bool) -> dict:
"state": "running" if running else "stopped"}
def set_seed_vc_worker(running: bool) -> dict:
"""Start Seed-VC exclusively, or stop it before another mode is loaded."""
with LOCK:
item = seed_vc_container()
if running:
for profile_item in containers().values():
stop_container(profile_item)
for worker in image_containers():
stop_container(worker, timeout=20)
stop_container(tts_container(), timeout=30)
stop_music_if_configured()
stop_separator_if_configured()
stop_voice_tools("seedvc")
start_container(item)
else:
stop_container(item, timeout=30)
return {"seed_vc_worker": SEED_VC_WORKER,
"state": "running" if running else "stopped"}
def set_applio_worker(running: bool) -> dict:
"""Start Applio exclusively, or stop it before another mode is loaded."""
with LOCK:
@@ -498,13 +458,6 @@ class Handler(BaseHTTPRequestHandler):
"unhealthy" if "(unhealthy)" in voice_change_status else
"starting" if voice_change.get("State") == "running" else
"stopped")
seed_vc = seed_vc_container() if SEED_VC_WORKER else {}
seed_vc_status = seed_vc.get("Status", "")
seed_vc_health = ("disabled" if not SEED_VC_WORKER else
"healthy" if "(healthy)" in seed_vc_status else
"unhealthy" if "(unhealthy)" in seed_vc_status else
"starting" if seed_vc.get("State") == "running" else
"stopped")
applio = applio_container() if APPLIO_WORKER else {}
applio_status = applio.get("Status", "")
applio_health = ("disabled" if not APPLIO_WORKER else
@@ -521,8 +474,6 @@ class Handler(BaseHTTPRequestHandler):
"voice_health": voice_health,
"voice_change_worker": voice_change.get("State", "disabled"),
"voice_change_health": voice_change_health,
"seed_vc_worker": seed_vc.get("State", "disabled"),
"seed_vc_health": seed_vc_health,
"applio_worker": applio.get("State", "disabled"),
"applio_health": applio_health,
"profiles": {name: items.get(name, {}).get(
@@ -570,13 +521,6 @@ class Handler(BaseHTTPRequestHandler):
log.exception("voice-change worker transition failed")
self.reply(503, {"error": str(exc)})
return
if self.path in {"/workers/seed-vc/start", "/workers/seed-vc/stop"}:
try:
self.reply(200, set_seed_vc_worker(self.path.endswith("/start")))
except Exception as exc:
log.exception("Seed-VC worker transition failed")
self.reply(503, {"error": str(exc)})
return
if self.path in {"/workers/applio/start", "/workers/applio/stop"}:
try:
self.reply(200, set_applio_worker(self.path.endswith("/start")))
@@ -83,7 +83,6 @@ start_proxy 7862 music-worker:7860
start_proxy 8007 stem-separator:8080
start_proxy 8008 voice-studio:8008
start_proxy 8009 xvc-studio:8009
start_proxy 8010 seed-vc-studio:7860
start_proxy 8011 applio-studio:6969
start_proxy 8202 mcp-athena-operator:8000
start_proxy 9443 portainer:9443