Add .gitignore, Update 3 files

This commit is contained in:
pinokio
2026-11-03 15:47:54 +01:00
parent 68846600c1
commit a479853372
4 changed files with 33 additions and 7 deletions
+6 -2
View File
@@ -89,12 +89,16 @@ def meeting(name: str, start_from: str = "audio", speakers: int = 0, model: str
try:
db.upsert_recording(name, flow_run_id=str(flow_run.id))
db.progress_start(name, start_from)
# shots (slow, one vision call per screen) depend only on the video: keep them when re-running an earlier step; an explicit "shots" run redoes them
sj = db.out_dir(name) / "shots.json"
skip_shots = start_from != "shots" and sj.exists() and sj.stat().st_size > 2
if skip_shots and go("shots"): print("shots already done: skipped (run from 'shots' to redo)")
if start_from == "render":
memory.run(name, link=False)
else:
if go("audio"): t_audio(name)
spk_chain = lambda: [t_diarize(name, speakers), t_speakers(name)] if go("diarize") else ([t_speakers(name)] if go("speakers") else None)
if device == "npu" and go("transcribe") and go("shots"):
if device == "npu" and go("transcribe") and go("shots") and not skip_shots:
db.set_status(name, "transcribing")
L.ensure()
f_t = t_transcribe.submit(name, model, "npu", False)
@@ -113,7 +117,7 @@ def meeting(name: str, start_from: str = "audio", speakers: int = 0, model: str
else:
if go("transcribe"): t_transcribe(name, model, device)
spk_chain()
if go("shots"): L.ensure(); t_shots(name)
if go("shots") and not skip_shots: L.ensure(); t_shots(name)
L.ensure(vision=False) # docs queries, report, memory are text-only: drop the vision encoder, use the text profile
if go("docs"): t_docs(name)
if go("report"): t_report(name)