Cloud/on-prem install choice, omp auth (Copilot + Anthropic), omp status in GUI
This commit is contained in:
+3
-2
@@ -310,7 +310,7 @@ def status():
|
||||
w = db.media(n)[0]; d["mb"] = round(w.stat().st_size / 1e6, 1) if w else 0
|
||||
rs.append(d)
|
||||
return {"now": t, "recs": rs, "busy": busy(), "queue": len(QUEUE), "skip_shots": (db.GLOBAL / "skip_shots.txt").exists(),
|
||||
"llm": [llama.current(True), llama.current(False)], "llms": [[[k, llama.label(k)] for k in llama.available(v)] for v in (True, False)]}
|
||||
"llm": [llama.current(True), llama.current(False)], "omp": llama.omp_status(), "llms": [[[k, llama.label(k)] for k in llama.available(v)] for v in (True, False)]}
|
||||
|
||||
|
||||
def fts(sql, q):
|
||||
@@ -408,7 +408,7 @@ body.drag main{outline:3px dashed var(--acc);outline-offset:8px;border-radius:14
|
||||
button.del{color:var(--redf)}button.del:hover{background:var(--red);border-color:var(--redf)}
|
||||
dialog{border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--fg);padding:16px;width:min(960px,94vw)}dialog::backdrop{background:rgba(0,0,0,.5)}
|
||||
dialog video{width:100%;max-height:68vh;background:#000;border-radius:8px}dialog input.tm{width:90px}#cmsg{color:var(--mut);font-size:13px}</style>
|
||||
<main><header><h1>Riunioni</h1><div class=row><span id=qs></span><label title="non legge le schermate condivise: elaborazione molto più veloce, report solo dal parlato"><input type=checkbox id=skp onchange=setSkip()> Salta schermate</label><select id=llm title="modello per le schermate (shots)" onchange=setLlm()></select><select id=llmr title="modello per il report" onchange=setLlm()></select><button onclick=mergeSel() title="unisce in un solo video le registrazioni spuntate (stessa chiamata riavviata)">Unisci spuntati</button><button class=pri onclick=pick() title="mp4, mkv, mov, webm, wav, m4a, mp3">⬆ Carica video</button>
|
||||
<main><header><h1>Riunioni</h1><div class=row><span id=omps title="login: menu Pinokio → Cloud login"></span><span id=qs></span><label title="non legge le schermate condivise: elaborazione molto più veloce, report solo dal parlato"><input type=checkbox id=skp onchange=setSkip()> Salta schermate</label><select id=llm title="modello per le schermate (shots)" onchange=setLlm()></select><select id=llmr title="modello per il report" onchange=setLlm()></select><button onclick=mergeSel() title="unisce in un solo video le registrazioni spuntate (stessa chiamata riavviata)">Unisci spuntati</button><button class=pri onclick=pick() title="mp4, mkv, mov, webm, wav, m4a, mp3">⬆ Carica video</button>
|
||||
<input type=file id=up accept="video/*,audio/*,.mkv" hidden></div></header>
|
||||
<div id=hint>Trascina qui un video o un audio di una riunione per elaborarlo.</div>
|
||||
<div class="card" id=ub hidden><div class=pg style="margin:0;border:0;padding:0;background:none"><div class=pgh><span><span class=big id=ubig>0%</span> <b id=utitle></b></span><button id=ucancel>annulla</button></div>
|
||||
@@ -511,6 +511,7 @@ async function tick(){try{const j=await (await fetch("/status")).json();ab.disab
|
||||
const runp=j.recs.map(r=>r.prog).filter(p=>p&&p.pct!=null);document.title=runp.length?`${Math.round(runp[0].pct*100)}% · ${LBL[runp[0].step]} · Riunioni`:"Riunioni";
|
||||
for(const [s,i,p] of [[llm,0,"shots: "],[llmr,1,"report: "]])if(document.activeElement!==s){s.innerHTML=j.llms[i].map(([k,l])=>`<option value=${k}>${p}${E(l)}`).join("");s.value=j.llm[i];s.disabled=j.busy}
|
||||
skp.checked=j.skip_shots;skp.disabled=j.busy;
|
||||
const o=j.omp;omps.innerHTML=!o.exe?`<span style="color:var(--redf)">omp non installato</span>`:[["github-copilot","Copilot"],["anthropic","Anthropic"]].map(([k,l])=>`<span title="${E(o[k]||"login valido")}"${o[k]?' style="color:var(--redf)"':""}>${o[k]?"✗":"✓"} ${l}</span>`).join(" · ");
|
||||
qs.textContent=j.queue?`rielaborazione: ${j.queue} da completare`:"";
|
||||
document.querySelectorAll("select[id^=f-]").forEach(s=>sel[s.id]=s.value);
|
||||
let h="<thead><tr><th>recording<th>status<th>duration<th>speakers<th>MB<th>links<th>actions</tr></thead>";
|
||||
|
||||
Reference in New Issue
Block a user