Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
| 1 |
-
---
|
| 2 |
-
title:
|
| 3 |
-
emoji: π
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: indigo
|
| 6 |
-
sdk: docker
|
| 7 |
-
---
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
-
|
| 17 |
-
|
| 18 |
-
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Chilo Ai
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: docker
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
# π Confidential Prompt API
|
| 11 |
+
|
| 12 |
+
This project provides a secure FastAPI interface for calling powerful instruction-based prompts **without exposing the source JSON**.
|
| 13 |
+
|
| 14 |
+
## π What it does
|
| 15 |
+
|
| 16 |
+
- Allows users to **generate an API key** (`/signup`)
|
| 17 |
+
- Securely **process confidential instructions** (`/instructions`) using their key
|
| 18 |
+
- Protects your proprietary logic with no direct prompt exposure
|
| 19 |
+
|
| 20 |
+
## π Security Design
|
| 21 |
+
|
| 22 |
+
- Prompt is loaded from a secure `.json` file using a Hugging Face secret variable
|
| 23 |
+
- Keys are stored securely in a private SQLite database
|
| 24 |
+
- Unauthorized requests return `401 Unauthorized`
|
| 25 |
+
|
| 26 |
+
## π£ How to Use
|
| 27 |
+
|
| 28 |
+
1. **Generate a Key**:
|
| 29 |
+
```bash
|
| 30 |
+
curl -X POST https://<your-space-name>.hf.space/signup
|