ayush2917 commited on
Commit
f6df21b
Β·
verified Β·
1 Parent(s): 01e2279

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -31
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- title: Little Krishna Chatbot (Docker)
3
- emoji: 🐳🦚
4
  colorFrom: blue
5
  colorTo: yellow
6
  sdk: docker
@@ -8,35 +8,14 @@ app_file: app.py
8
  pinned: false
9
  ---
10
 
11
- <div align="center">
12
- <img src="static/assets/krishna.png" width="200">
13
- <h1>Little Krishna Chatbot</h1>
14
- <p>Dockerized divine AI companion with secret management</p>
15
- </div>
16
 
17
- ## πŸ” Secret Configuration (Hugging Face Spaces)
18
 
19
- 1. **Go to your Space Settings** β†’ **Secrets**
20
- 2. Add these exact secret names:
21
 
22
- | Secret Name | Example Value | Required |
23
- |------------|---------------|----------|
24
- | `HUGGINGFACE_API_TOKEN` | `hf_AbCdE...` | βœ… |
25
- | `FIREBASE_PROJECT_ID` | `your-project-id` | βœ… |
26
- | `FIREBASE_PRIVATE_KEY` | `-----BEGIN PRIVATE KEY-----\n...` | βœ… |
27
- | `FIREBASE_CLIENT_EMAIL` | `firebase-adminsdk@...` | βœ… |
28
-
29
- ## 🐳 Docker Deployment
30
-
31
- ### For Hugging Face Spaces
32
- ```dockerfile
33
- # Dockerfile
34
- FROM python:3.9-slim
35
-
36
- WORKDIR /app
37
- COPY . .
38
-
39
- RUN pip install --no-cache-dir -r requirements.txt
40
-
41
- # The secrets will be automatically injected as environment variables
42
- CMD ["python", "app.py"]
 
1
  ---
2
+ title: Little Krishna Chatbot
3
+ emoji: 🦚
4
  colorFrom: blue
5
  colorTo: yellow
6
  sdk: docker
 
8
  pinned: false
9
  ---
10
 
11
+ # Little Krishna Chatbot 🎢🐳
 
 
 
 
12
 
13
+ ## 🚨 Fixing "Application Not Initialized" Error
14
 
15
+ ### Root Cause
16
+ The Flask app isn't properly exposed on port 7860 (Hugging Face's default port)
17
 
18
+ ### Solution 1: Update `app.py`
19
+ ```python
20
+ if __name__ == '__main__':
21
+ app.run(host='0.0.0.0', port=7860) # Add this at the end