GUI: upload, live progress + ETA, delete; report thinking; docs twg fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Stefano Zini
2026-11-02 17:23:40 +01:00
co-authored by Claude Opus 5.5
parent edb8ee3731
commit cbe111bc34
9 changed files with 309 additions and 29 deletions
+2
View File
@@ -27,7 +27,9 @@ def run(name, speakers=5, threshold=0.85):
def progress(done, total): # sherpa calls this per processed chunk; print every 10 %
pct = done * 100 // max(total, 1)
if pct // 10 > last[0]: last[0] = pct // 10; print(f"diarize {pct}% ({done}/{total}, {time.time() - t0:.0f} s)", flush=True)
if done % 20 == 0 or done == total: db.tick(name, done, total, "impronte vocali dei segmenti")
return 0
db.tick(name, 0, 0, "segmentazione dell'audio (~1-2 min)")
segs = [(s.start, s.end, s.speaker) for s in sd.process(audio, callback=progress).sort_by_start_time()]
print(len(segs), "segments,", len({s[2] for s in segs}), f"speakers ({time.time() - t0:.0f} s)", flush=True)