ayush2917 commited on
Commit
8d0d927
·
verified ·
1 Parent(s): 5cb0eae

Update huggingface_docker/README.md

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