CoolFace
Apppublic

syedanaazimaunnisa/Heritage-chatbot

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

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

  1. 1.Clone or download the project folder. Ensure the following files are in the same directory:
    app.py
    requirements.txt
  1. 1.Install dependencies:
bash
    pip install -r requirements.txt
  1. 1.Run the application:
bash
    streamlit run app.py
  1. 1.The app will open in your browser automatically.

Database Schema

The SQLite database (proverbs.db) contains one table: contributions

FieldTypeDescription
idINTEGER (PK)Auto-incremented primary key
textTEXTThe contribution content
languageTEXTLanguage of the contribution
regionTEXTRegional origin of the content
contributorTEXTName of the contributor
categoryTEXTAI-assigned category
timestampDATETIMESubmission time
statusTEXTSync status (pending_sync or synced)

πŸ“ 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.