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
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/
- Add the following secrets in Hugging Face Space Settings > Secrets:
Hardware:
- Use the CPU basic tier (2 vCPU, 16 GB, free) in Hugging Face Space Settings.
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.