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:
co-authored by
Claude Opus 5.5
parent
edb8ee3731
commit
cbe111bc34
+8
-3
@@ -21,7 +21,8 @@ STEPS = ["audio", "transcribe", "diarize", "speakers", "shots", "docs", "report"
|
||||
|
||||
|
||||
def step_status(name, s):
|
||||
db.set_status(name, s)
|
||||
# key per model for the LLM steps: their speed (and so the ETA) depends on it
|
||||
db.step(name, s, f"{s}@{llama.current(s == 'shots')}" if s in ("shots", "report") else s)
|
||||
|
||||
|
||||
@task(name="audio")
|
||||
@@ -87,6 +88,7 @@ def meeting(name: str, start_from: str = "audio", speakers: int = 5, model: str
|
||||
L = Llama(name)
|
||||
try:
|
||||
db.upsert_recording(name, flow_run_id=str(flow_run.id))
|
||||
db.progress_start(name, start_from)
|
||||
if start_from == "render":
|
||||
memory.run(name, link=False)
|
||||
else:
|
||||
@@ -112,11 +114,11 @@ def meeting(name: str, start_from: str = "audio", speakers: int = 5, model: str
|
||||
if go("transcribe"): t_transcribe(name, model, device)
|
||||
spk_chain()
|
||||
if go("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)
|
||||
L.ensure(vision=False) # report/memory are text-only: drop the vision encoder, use the text profile
|
||||
if go("report"): t_report(name)
|
||||
t_memory(name)
|
||||
db.set_status(name, "done")
|
||||
db.step(name, "done")
|
||||
except Exception as e:
|
||||
db.set_status(name, "error", repr(e)[:500])
|
||||
raise
|
||||
@@ -135,6 +137,9 @@ def bench(name):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if sys.argv[1:] == ["--prefect-server"]: # server.py: run Prefect from this cached env (an ephemeral --with env needs PyPI)
|
||||
import subprocess
|
||||
sys.exit(subprocess.call([sys.executable, "-m", "prefect", "server", "start", "--host", "127.0.0.1", "--port", "4200"]))
|
||||
sys.stdout.reconfigure(encoding="utf-8")
|
||||
ap = argparse.ArgumentParser()
|
||||
ap.add_argument("name"); ap.add_argument("--from", dest="start", default="audio", choices=STEPS)
|
||||
|
||||
Reference in New Issue
Block a user