Spaces:
Paused
Paused
Commit History
-
v0.90: scoped single-use tokens, hardened link fetch, 45-minute cap, whole-video digest, one classification call, no OCRβ
Malina +1: Claude Fable 5.1- auth.py shared with LUNA: scope + iat checks, jti persisted across restarts, TOKEN_REQUIRE_SCOPE - fetch.py: known hosts only, public-address check, no generic extractor, cookies filtered by domain, 240 s deadline, 400 MB cap, temp dirs swept - pipeline: duration cap, every refusal prefixed with the error marker, stage timings, int16 audio cache, ingest locks pruned - chat: one classify call (OFF/ANALYZE/ANSWER), server-side size caps, fixed error sentences, NEED_VIDEO handshake removed - synthesis: whole-transcript digest for summaries; language detector moved to lang.py; fmt_time m:ss / h:mm:ss - visual: seek-based frame sampling past five minutes - OCR removed (rapidocr, onnxruntime, libgl1); yt-dlp pinned; max_file_size at the door; README rewritten - tests: auth, fetch validation, language and time formatting (55) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1d697a7
-
Add pasted-link video ingestion (yt-dlp) + /fetch endpointβ
Malina +1: Claude Opus 4.8New fetch.py downloads a pasted URL (YouTube/Facebook/β¦ β anything yt-dlp supports) at β€480p, β€45 min, best-effort (cloud IPs are often blocked, so the site falls back to file upload). Exposed as Gradio api_name="fetch" returning the video + title/error. yt-dlp added to requirements (unpinned, by design). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>51e7ae9
-
Re-analysis confirm route + adaptive answer formattingβ
Malina +1: Claude Opus 4.8- chat/app: add a 'route' endpoint (route_decision) so the website can ask the user before re-watching the video ("NINA wants to analyze the video again"); add force_answer ("Don't" β answer from context) alongside force_analyze. - synthesis/chat: answers now adapt their shape to the question (Markdown) β short paragraphs, bullet lists, bold, optional headings for long/multi-part answers β instead of one prose block. Shared _FORMAT_GUIDE. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>7c88737 -
Visual-only answers, coreference + on-topic guard, 15-min cacheβ
Malina +1: Claude Opus 4.8- pipeline: drop the "No speech detected" dead-end β when there's no usable transcript, synthesize from the visuals alone (VLM on keyframes), so "what does the person do?" works on silent/music clips. - chat: resolve references to earlier turns ("explain more"); ask to clarify when a reference is ambiguous; gate out off-topic requests and steer back to the uploaded video; route follow-ups to context instead of re-analysis. - app: keep uploaded media 15 min (delete_cache 900) so follow-up turns reuse the already-uploaded video without re-uploading. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>9a43844 -
NINA: conversational chat endpoint (Phase 2)β
Malina +1: Claude Opus 4.8- app.py β gr.Blocks exposing two API endpoints: /run (legacy single-shot, the current tool page) and /chat (new). Keeps delete_cache privacy purge. - chat.py: per-turn router (LLM decides ANALYZE vs ANSWER), context answering from the stored transcript + conversation, manual force_analyze override. Streams [answer, analyzed, transcript]; the website stores the transcript text (no media). - pipeline: split run() into a token-checked wrapper + _run_core so chat can analyze without re-consuming the single-use token; add transcript_text() for storage. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>9510df1 -
NINA v0.82 β upload compression, natural multilingual answers, robust preciseβ
Malina +1: Claude Opus 4.8- compress.py + pipeline guard: reject uploads >200 MB, ffmpeg-downscale anything >20 MB to 720p before decode (faster, smaller) - synthesis: detect the prompt language (langdetect + diacritic fallback) and answer in it; natural prose + a final "Sources:" line; auto-sized length - precise re-transcription: loosen logprob gate -0.55 β -0.40 so it actually fires on weak audio; never crash (graceful fallback if the model can't load) - app.py: drop benign ClientDisconnect tracebacks from upload aborts Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>0695bec
-
NINA v0.81 β modular refactor + usage-token gate + 8-vCPU queueβ
Malina +1: Claude Opus 4.7- Split monolith into app.py + pipeline/audio/auth/cache/config/models/retrieval/ synthesis/utils/visual modules. - auth.verify_usage_token: HMAC (NINA_SIGNING_SECRET) + expiry + single-use; pipeline.run() refuses without a valid Worker-issued token (per-account 10/5h limit enforced server-side; the public Space can't be used directly). - run() takes a 3rd `token` input; Interface queue tuned for ~8 vCPU (concurrency 3, max 40); uploaded-media purge kept (delete_cache 5 min). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>05f095d -
DEBUG TRUE app.py
Verified signature889dbaa -
NINA: privacy/cleanup for uploaded media (delete_cache + idle eviction)β
Malina +1: Claude Opus 4.7- Interface delete_cache=(300,300): Gradio purges uploaded videos older than 5 min, every 5 min. One upload still serves many prompts (audio + transcript are cached in RAM, so the file isn't needed after first processing). - In-memory session state evicted after 20 min idle; on-disk transcript/embedding cache purged after 30 min. Keeps data from lingering; keeps multi-prompt fast. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>87577ff -
NINA v0.80 β performance pass (app.py)β
Malina +1: Claude Opus 4.7- Auto device select (CUDA/MPS/CPU): CLIP + cross-encoder on Metal on Apple Silicon. - Drop double transcription: global uses the base transcript; specific does confidence-gated (avg_logprob) selective turbo re-transcription only. - Parallel cold start (ASR on CPU || CLIP on MPS); zero-copy audio decode and raw-frame ffmpeg pipe (no temp wav / JPEGs). - Persistent disk cache keyed by content fingerprint. - Streaming LLM synthesis; run() is now a generator. - Router fix (no more "about X" => global) and removed the leaking [2:30] example. Measured: cold first prompt 58.8s -> ~9s on M1; warm prompts sub-second to first token. requirements.txt: pinned to tested versions; CPU torch wheel index for the Space. README: HF_TOKEN secret note + @gradio/client API usage for the app.nnlabs.pl front-end. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>3ffb602
-
Rename main.py to app.py
Verified signature5cd5832