File size: 1,791 Bytes
9af05cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# Little Krishna Chatbot
A birthday gift for Manavi, powered by Flask, Gemma, Stable Diffusion, and Firebase.
## Overview
This app creates a Little Krishna-themed chatbot for Manavi’s birthday on April 19, 2025. It features:
- A chatbot powered by Gemma (via Hugging Face Inference API).
- Krishna-themed images generated by Stable Diffusion (via Hugging Face Inference API).
- Chat history stored in Firebase Realtime Database.
- A countdown to Manavi’s birthday.
- A birthday message page with a generated image and animation.
## Setup
1. **Secrets**:
- Add the following secrets in Hugging Face Space Settings > Secrets:
- `HUGGINGFACE_API_TOKEN`: Your Hugging Face API token (read access).
- `FIREBASE_PROJECT_ID`: `birthday-d1e31`
- `FIREBASE_PRIVATE_KEY_ID`: `101cfdd51115184fd9d6ee189b2264420c0ce015`
- `FIREBASE_PRIVATE_KEY`: (Your Firebase private key, multi-line)
- `FIREBASE_CLIENT_EMAIL`: `[email protected]`
- `FIREBASE_CLIENT_ID`: `113359261182405536589`
- `FIREBASE_CLIENT_X509_CERT_URL`: `https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-fbsvc%40birthday-d1e31.iam.gserviceaccount.com`
- `FIREBASE_DATABASE_URL`: `https://birthday-d1e31-default-rtdb.firebaseio.com/`
2. **Hardware**:
- Use the CPU basic tier (2 vCPU, 16 GB, free) in Hugging Face Space Settings.
3. **Restart Space**:
- After adding files and secrets, restart the Space to deploy the app.
## Usage
- **Home Page**: See the countdown to Manavi’s birthday and a Krishna animation.
- **Chat Page**: Chat with Little Krishna and generate a comic strip by saying “Tell me a story!”
- **Birthday Message Page**: View a generated Krishna image and Ayush’s birthday message for Manavi. |