Spaces:
Sleeping
Sleeping
Commit History
-
Phase 1: Sahel-Voice-Lab β The Memory Loopβ
jefffffff9 +1: Claude Sonnet 4.6New project pivot: self-learning voice assistant for Bambara/Fula using 100% non-Meta tech stack. New files: - app_lab.py β Gradio UI: push-to-talk + last 5 words panel - src/memory/memory_manager.py β persists vocabulary.jsonl to HF Hub - src/llm/gemma_client.py β Gemma via HF Serverless Inference API - data/vocabulary.jsonl β empty initial vocabulary store Flow: audio β Whisper STT β Gemma (with vocabulary context) β teaching intent β MemoryManager.add_word_pair() β Hub push question intent β answer from vocabulary conversation β natural reply README.md updated: app_file changed to app_lab.py, stack documented. Stack: openai/whisper-large-v3-turbo (STT), google/gemma-3-4b-it (LLM), Waxal TTS (Phase 2), HF Dataset for memory. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>096b19d
-
Add phrase library + fuzzy matcher for general Bambara/Fula conversationβ
jefffffff9 +1: Claude Sonnet 4.6Core problem: the app responded to 'I ni ce' with a sensor default message because it had no conversational knowledge. Fixed with a phrase-library approach that requires zero ML training. New files: - data/phrases/bambara.json β 37 curated Bambara phrases with Whisper variants - data/phrases/fula.json β 38 curated Fula/Pular phrases with Whisper variants - src/conversation/phrase_matcher.py β fuzzy matcher using rapidfuzz (falls back to substring match if rapidfuzz unavailable) app.py changes: - Pipeline tries phrase library FIRST; sensor pipeline is fallback - Low-confidence unknown intents return 'I didn't understand' in native lang - New 'Knowledge Base' tab: paste phrase pairs (native|english) β immediate - YouTube import tab: download audio + save transcription to training dataset - User additions persisted to HF Hub (survive Space restarts) - Phrase additions loaded from Hub in background at startup requirements.txt: added rapidfuzz==3.13.0, yt-dlp==2025.3.31 Co-Authorβ¦6f4d8d0