syedanaazimaunnisa/Heritage-chatbot
syedanaazima007
Spice&Story - Community Recipe & Lore Hub π£οΈ
Spice&Story is a Streamlit application built to celebrate and preserve the rich tapestry of Indian heritage β through proverbs, folk tales, historical lore, and local recipes. It empowers community members to contribute, store, and sync cultural knowledge from diverse regions across India.
Key Features
Contribution Form
Users can submit text-based contributions, specifying:
- Language
- Region
- Contributorβs name (optional)
Local Storage
All contributions are saved locally in a SQLite database (proverbs.db) for offline access and future syncing.
Simulated AI Classification
A mock AI classifier categorizes entries into:
- Proverb
- Folk Tale
- Recipe
- Historical Lore
- Uncategorized
Classification is keyword-based and for demonstration purposes.
Sync Functionality
Click the "Sync Pending Contributions" button to simulate syncing local data to a central server. Synced entries are marked with the status synced.
Interactive Dashboard
The dashboard provides:
- β Total contributions
- π Table of 10 most recent submissions
- π Bar charts showing counts by:
- Language
- AI-classified category
π Technologies Used
- Python β Core language
- Streamlit β UI and interactivity
- SQLite3 β Local storage
- Pandas β Data manipulation and display
Getting Started
Prerequisites
- Python 3.x
Installation & Running
- Clone or download the project folder. Ensure the following files are in the same directory:
app.py
requirements.txt- Install dependencies:
pip install -r requirements.txt- Run the application:
streamlit run app.py- The app will open in your browser automatically.
Database Schema
The SQLite database (proverbs.db) contains one table: contributions
π Project Structure
Spice&Story/
βββ app.py # Main Streamlit app
βββ proverbs.db # SQLite database
βββ requirements.txt # Project dependencies
βββ README.md # Project overview (this file)
Contributing
We welcome contributions! Feel free to fork the repository, make enhancements, and submit a pull request.
License
This project is open-source and available under the MIT License.
