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.
11 lines
2.9 KiB
JavaScript
11 lines
2.9 KiB
JavaScript
window.ApplioUI=(()=>{
|
|
function render(){const view=document.querySelector('#view');if(view.querySelector('#applio-page'))return;
|
|
view.innerHTML='<div id="applio-page"><h1>Applio / RVC</h1><p>Stimmen umwandeln und eigene Stimmen trainieren. Unsere bisherige Oberfläche bleibt erhalten; die native Laufzeit und GPU steuert Athena Deck.</p><section class="card"><h2>Applio 3.6.5 einrichten</h2><p id="ap-status"></p><button id="ap-install">Laufzeit und Basisgewichte installieren</button><button id="ap-cancel" class="secondary">Installation abbrechen</button><details><summary>Installationsausgabe</summary><pre id="ap-log" style="white-space:pre-wrap;max-height:300px;overflow:auto"></pre></details></section><section class="card"><h2>Ausführung</h2><label>GPU für Applio<select id="ap-device"><option value="3060">RTX 3060</option><option value="5080">RTX 5080</option></select></label><button id="ap-save">GPU speichern</button><p id="ap-state"></p><a id="ap-link" class="link" target="_blank" rel="noopener">Unsere Applio-Oberfläche öffnen →</a><p>Vor einem Auftrag Applio in Stimmwerkzeuge → Profile aktivieren und Steuerung → Stimmwerkzeuge starten. Immer nur ein Stimmwerkzeug-Profil aktiv.</p><p>Eigene Stimmen und Trainingsdaten lassen sich nicht aus einer Modellquelle wiederherstellen. Das normale Deck-Konfigurationsbackup enthält diese großen Dateien nicht. Separaten Datenexport verwenden.</p></section><p id="ap-error" role="alert"></p></div>';
|
|
const root=view.firstChild,el=id=>root.querySelector('#'+id);el('ap-link').href=DeckLinks.url(8132,'/');let dirty=false;el('ap-device').onchange=()=>dirty=true;
|
|
async function api(path,data){const r=await fetch('/api/v1/'+path,data?{method:'POST',headers:{'Content-Type':'application/json','X-Athena-Deck':'1'},body:JSON.stringify(data)}:{});const d=await r.json();if(!r.ok)throw Error(d.error||'Aktion fehlgeschlagen.');return d;}
|
|
async function poll(){if(!root.isConnected)return;try{const s=await api('applio-runtime'),a=await api('applio');if(!root.isConnected)return;el('ap-status').textContent=s.job?.phase||(s.installed?'Applio 3.6.5 installiert.':'Laufzeit fehlt.');el('ap-install').disabled=s.installed||s.job?.state==='running';el('ap-cancel').disabled=s.job?.state!=='running';el('ap-state').textContent=a.active?'Applio-Auftrag läuft.':a.selected_profile?'Aktives Profil: '+a.selected_profile:'Noch kein Applio-Profil aktiv.';if(!dirty)el('ap-device').value=a.device;if(s.job)el('ap-log').textContent=(await api('applio-runtime/log')).text;}catch(e){el('ap-error').textContent=e.message;}if(root.isConnected)setTimeout(poll,3000);}
|
|
for(const [id,path] of [['ap-install','applio-runtime/install'],['ap-cancel','applio-runtime/cancel']])el(id).onclick=async()=>{try{await api(path,{});}catch(e){el('ap-error').textContent=e.message;}};
|
|
el('ap-save').onclick=async()=>{try{await api('applio/configure',{device:el('ap-device').value});dirty=false;}catch(e){el('ap-error').textContent=e.message;}};poll();
|
|
}return {render};
|
|
})();
|