Spaces:
Sleeping
Sleeping
Commit History
-
Fix demos: build to /app/demo_samples, copy to DATA_DIR at runtime
HF Spaces mounts a persistent volume over /home/user/data, which overwrites files generated during Docker build. Now demos are built to /app/demo_samples/ and copied to DATA_DIR/samples/ on first run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0c865ec -
Remove Batch Analysis Coming Soon from Trends tab
Batch Analysis belongs only in Features > Roadmap, not in Trends. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>2c3cda4 -
Add API tab (Coming Soon) and Batch Analysis to Features
- New API tab before Logs with REST endpoints, webhooks, platform integration - Batch Analysis added to Features > Roadmap section - Removed Trend Analytics from Roadmap (now implemented in Trends tab) - 8 tabs: Analyzer, Compare, Trends, Database, API, Logs, Features, About Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>7343a47 -
Add Trends tab with analytics charts and Coming Soon sections
- Risk Score Over Time: line chart with green/yellow/red zones - Fraud Type Distribution: stacked bar chart by day - Voice Reuse Patterns: top 10 voices bar chart with color coding - KPI summary: total tests, avg risk, high risk %, recurring voices - Coming Soon: Batch Analysis and Webhook/API Integration with impact Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>5b529ce -
Hard fraud indicators force MEDIUM risk minimum
- 2+ speakers detected: minimum 45 (MEDIUM) - Whispers detected: minimum 40 (MEDIUM) - Wake word detected: minimum 35 (MEDIUM) These are clear fraud signals that should never result in LOW risk. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1d50892 -
Wake word detection always triggers MEDIUM risk minimum (35)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>2c0695b -
Fix PDF download: convert bytearray to bytes for Streamlit
fpdf2's output() returns bytearray which Streamlit's download_button does not accept. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>4d50a3e -
Update title to Audio Fraud Analyzer for Remote Tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>479e15d -
Add Play button to preview demo audio before analyzing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>57ed83e -
Add Test History with View Report in Database tab
- Add AnalysisResult.from_dict() to reconstruct results from stored JSON - Add Test History section in Database tab listing all past analyses - View Report button loads full report inline with back navigation - Results now persist across Streamlit reruns via session_state Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>91ee436 -
Fix analysis results disappearing on Streamlit rerun
- Remove st.cache_resource.clear() which destroyed analyzer model cache - Display last_result from session_state at end of analyzer tab - Save audio bytes in analyze_recorded_audio for playback persistence Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>69a6bad -
Fix bytearray crash in voiceprint matching
SQLAlchemy LargeBinary returns bytearray, but np.frombuffer requires bytes. Wrap with bytes() before calling np.frombuffer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>231585e -
Generate demo audio at Docker build time instead of runtime
gTTS was failing at runtime on HF Spaces, causing demos to never appear. Now demos are generated during docker build when network is guaranteed. Runtime fallback kept with better error logging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>373a55e -
Update Features tab: LMS → SOP and proctoring platforms
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>4c6b2ee -
Clean up Features tab and remove Batch Analysis from Analyzer
- Remove "Tier 1/2/3" labels from Features tab (user-facing names) - Replace emdashes with colons in Features content - Remove "Coming Soon: Batch Analysis" from Analyzer tab (already in Features/Roadmap) - Show message when demo samples are not yet available - Log demo generation errors instead of silencing them Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3d5e4e1 -
Add Features tab with complete capability listing and tier breakdown
New tab showing all app features organized by release tier: - Core Platform: diarization, voiceprint DB, fraud detection suite - Tier 1 (Released): risk score, KPIs, PDF reports, 6 demo scenarios - Tier 2 (Released): comparison view, alert rules engine - Tier 3 (Roadmap): batch analysis, trend analytics, API, multi-language - Infrastructure: auth, deployment, persistence, UI/UX Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b565407 -
Fix layout: render demo analysis results outside column context
The "Analyze Demo" button was inside a st.columns() context, causing render_results() to render inside a narrow column. Moved the analysis call outside the column so results display full-width. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>cc16820 -
Add Tier 2: Comparison View tab and Alert Rules Engine
- New "Compare" tab: side-by-side test comparison with risk scores, detection flags, speaker summary, shared voice detection, and grouped bar chart breakdown - Alert Rules Engine in sidebar: configurable thresholds for risk score, synthetic voice %, max pause duration, speaker count, and recurring voice appearances - Triggered alerts shown in results when rules are violated - DB methods: get_all_tests() and get_test_results() for comparison data Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f565754
-
Add 3 new demo scenarios + Coming Soon badge + lazy generation
New demos: Wake Word (Alexa + beep), Synthetic/Robotic Voice, Two Different Speakers. Total 6 demo scenarios. Demos generate on first app startup instead of build time. Added Batch Analysis Coming Soon badge below Upload section. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ebe2991 -
Fix build: generate demos on first app startup instead of build time
HF Spaces blocks binary files in git and build-time network is unreliable. Generate demos lazily on first app startup using st.cache_resource so it only runs once per container lifecycle. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>2884e37 -
Fix build error: restore fallback for demo generation
gTTS requires network access during Docker build which may not be available on HF Spaces build servers. Restore non-fatal fallback so the build completes even if demos can't be generated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>783ce18 -
Fix layout: remove restrictive column wrapper from Analyzer tab
The [1,3,1] column layout was compressing results, risk score, and timeline into a narrow center column. Now everything renders full-width for proper display. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>021827e -
Debug: remove silent fallback from demo generation to see errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1f1fe23 -
Add Tier 1 improvements: Risk Score, KPIs, PDF, Demo Samples
Feature 1 - Consolidated Risk Score (0-100): Weighted score from synthetic, playback, reading, whispers, pauses, wake words. Color-coded banner (green/yellow/red). Feature 2 - Demo Audio Samples: 3 pre-generated TTS demos (clean, reading fraud, coaching fraud) built at Docker build time via gTTS. "Try a Demo" selector in UI. Feature 3 - Dashboard KPIs: Tests Analyzed, Fraud Rate %, Unique Voices, Alerts Today displayed at top of Analyzer tab. Feature 4 - PDF Report Export: Professional downloadable PDF with risk score, speaker summary, detection flags table, alert details. Uses fpdf2. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3bafd90 -
Update login screen title to Audio Analyzer PoC
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1d47f87 -
Force dark mode theme
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>77ee704 -
Fix audio playback + persist logs across refreshes
Audio clips: Convert from float32 WAV to PCM int16 WAV for browser compatibility. Float32 WAV causes playback to cut short or fail in many browsers. Logs: Save session history to JSON file on disk (DATA_DIR/logs/) so logs survive page refreshes and container restarts. Load from disk on init, clear button also wipes the file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>89a987c -
Persist login across page refreshes with browser cookie
Uses HMAC-signed cookie (24h expiry) so users don't have to re-enter credentials on every Streamlit refresh. Cookie is cleared on explicit logout. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ac1df35 -
Fix permission denied: store models/data outside /app mount
HF Spaces mounts repo content over /app/ at runtime, overwriting Docker build-time permissions. Move model downloads to /home/user/models/ and data storage to /home/user/data/ which persist from build. All source files now use MODEL_DIR and DATA_DIR env vars for path resolution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>9109931 -
Fix permission denied on pretrained_models in HF Spaces
The VAD model files were owned by root but the app runs as user 1000. Added chmod 775 on pretrained_models and data dirs, and set HF_HOME and MPLCONFIGDIR to /tmp to avoid write permission issues at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1bd19e4 -
Add technical Logs tab with live terminal and session history
Adds a 4th tab "Logs" showing detailed pipeline logs for tech lead review. Each analysis step logs the library, model, parameters, and results (e.g. SpeechBrain VAD segments, ECAPA-TDNN embeddings, Whisper transcription). Logs are grouped by analysis session with collapsible history and a live terminal view. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d4458bf -
Add live audio recording with st.audio_input
- Added native Streamlit audio recorder above file upload - Works on HF Spaces without WebRTC dependencies - Keeps existing upload functionality below a divider Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>7bb87ae -
Fix HF Spaces deployment: use Docker SDK, pin huggingface_hub, pre-download models
- Changed sdk from streamlit to docker in README.md - Pinned huggingface_hub<1.0.0 to fix use_auth_token compatibility with SpeechBrain - Removed streamlit-webrtc (not supported in HF Spaces) - Updated Dockerfile: pre-download SpeechBrain models, non-root user, headless mode Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f3b6cec
-
Remove WebRTC, use upload only - more reliable
ad254b7 -
Fix WebRTC: add TURN servers for better connectivity
93bbeea -
Add WebRTC audio recording with streamlit-webrtc
3279020 -
Force rebuild - fix st.dialog compatibility
32e44fe -
Fix: remove st.dialog (requires Streamlit 1.33+), use inline upload
1dfc232 -
Fix: use file_uploader instead of audio_input (requires Streamlit 1.33+)
8446735 -
Add SOP Audio Analyzer app files
- Full Streamlit app with audio analysis - SpeechBrain VAD, diarization, voiceprint - Fraud detection modules - Database modelsebba35f -
initial commit
Verified signature9cda7a0 -
Duplicate from streamlit/streamlit-template-space
Verified signatureCo-authored-by: Franck Abgrall <FranckAbgrall@users.noreply.huggingface.co>c5038fa