Update README.md
Browse files
README.md
CHANGED
@@ -1,49 +1,42 @@
|
|
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 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
## Configuration
|
44 |
-
- **Entry Point**: The app uses `main.py` as the entry point, which imports the Flask app from `app.py`.
|
45 |
-
- **Python Version**: The app requires Python 3.9, as specified in `Space.yaml`.
|
46 |
-
- **Templates and Static Files**: The app uses templates in the `templates/` directory and static files in the `static/` directory.
|
47 |
-
- **Models Used**:
|
48 |
-
- `google/gemma-2b` for the chatbot.
|
49 |
-
- `runwayml/stable-diffusion-v1-5` for image generation.
|
|
|
1 |
+
---
|
2 |
+
title: Little Krishna Chatbot (Docker)
|
3 |
+
emoji: 🐳🦚
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: yellow
|
6 |
+
sdk: docker
|
7 |
+
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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|