Jatin-Kumar/Bhasha_Stories
π Bhasha Stories β Preserve India's Linguistic Heritage
An open-source, AI-powered platform to collect, transcribe, and share regional stories from across India.
π― Project Overview
Bhasha Stories is a professional-grade Streamlit web app built to capture Indiaβs oral and written storytelling traditions in native languages and dialects. Users can upload audio, write text, and generate shareable story cards β all enhanced by modern AI tools like OpenAI Whisper, Sentence Transformers, and Groq's LLaMA 3.1 via API.
π Live Demo
Access the application on Hugging Face Spaces:

π URL: https://huggingface.co/spaces/Jatin-Kumar/Bhasha_Stories
π Key Features
- π€ Multilingual Voice Recording β Upload stories in any Indian language.
- βοΈ Text Story Submission β Submit stories directly in text using native scripts.
- π Whisper-Based Transcription β Automatic speech-to-text with OpenAI Whisper.
- π€ Groq-Powered AI Assistant β LLaMA 3.1 (8B Instant) via Groq API for natural language querying.
- π Semantic Search with RAG β Enhanced Retrieval-Augmented Generation using sentence-transformers.
- π¨ Story Card Generator β Export visually appealing HTML-based story cards.
- π Analytics Dashboard β Real-time insights on story count, language coverage, and embedding health.
- βοΈ Supabase Integration β PostgreSQL/JSONB-backed persistent storage with semantic embedding storage.
π§ AI Integrations
π¦ Tech Stack
π Getting Started
π οΈ Local Development Setup
- Clone the repository
git clone https://gitlab.com/<your-group>/bhasha-stories.git
cd bhasha-stories- Install Python dependencies
pip install -r requirements.txt- Add Supabase and Groq secrets
Create a .streamlit/secrets.toml file:
SUPABASE_URL = "https://<your-project>.supabase.co"
SUPABASE_ANON_KEY = "<your-anon-key>"Set your Groq API key in the Streamlit sidebar during runtime.
- Run the app
streamlit run app.pyπ Directory Structure
bhasha-stories/
βββ app.py # Main Streamlit app
βββ requirements.txt # Python packages
βββ .streamlit/
β βββ secrets.toml # Secrets (Supabase credentials)
βββ CONTRIBUTING.md # Contribution guide
βββ LICENSE # MIT License
βββ stories_data/ # Local backup of stories
βββ README.md # This fileπ AI Analytics Dashboard
- Total stories & AI embedding coverage
- Language distribution of stories
- Average story length
- Embedding quality indicators
- Missing embedding alerts & auto-repair
π§² Who It's For
π Growth Strategy
π Example Use Cases
- Archive endangered languages
- Personal memory preservation
- Research-grade multilingual corpora
- Story-of-the-day social feeds
π§ Planned Enhancements
- π AI-based translation between Indian languages
- π± Mobile-first PWA interface
- π Voice synthesis / playback of stories
- π§ Advanced cross-lingual search + clustering
π€ Contributing
We welcome contributions! See CONTRIBUTING.md for instructions.
You can contribute by:
- Adding folktales and sharing the platform with friends and family.
π License
MIT License See LICENSE for more information.
π Acknowledgments
- OpenAI Whisper β STT Engine
- Sentence Transformers β Embedding model
- Groq β LLaMA 3.1 8B Inference API
- Streamlit β Frontend Framework
- Supabase β Cloud DB
- And the storytellers of India β€οΈ
Made with π by the Viswam.ai Internship Team β Empowering linguistic diversity through AI.
