Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,36 @@
|
|
| 1 |
---
|
| 2 |
-
title: IIP Grading Loader
|
| 3 |
-
emoji: 📈
|
| 4 |
-
colorFrom: gray
|
| 5 |
-
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
-
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: IIP Grading (Public Proxy Loader)
|
|
|
|
|
|
|
|
|
|
| 3 |
sdk: docker
|
| 4 |
+
app_port: 7860
|
| 5 |
---
|
| 6 |
|
| 7 |
+
# 🧩 IIP Grading — Public Loader for Private Static Space
|
| 8 |
+
|
| 9 |
+
This Space securely **proxies** your private static app hosted at
|
| 10 |
+
`https://cheekeong2025-iip-grading.static.hf.space`
|
| 11 |
+
without revealing its source code or assets.
|
| 12 |
+
|
| 13 |
+
## 🔧 How It Works
|
| 14 |
+
- The loader runs a small **FastAPI + httpx** proxy.
|
| 15 |
+
- It uses your private Hugging Face token (`HF_TOKEN`) to fetch content.
|
| 16 |
+
- End users only interact with this public loader Space, not the private one.
|
| 17 |
+
|
| 18 |
+
## 🔐 Required Secrets (set under “Settings → Repository secrets”)
|
| 19 |
+
|
| 20 |
+
| Secret Name | Example Value | Description |
|
| 21 |
+
|--------------|---------------|-------------|
|
| 22 |
+
| `PRIVATE_STATIC_URL` | `https://cheekeong2025-iip-grading.static.hf.space` | URL of your private static Space |
|
| 23 |
+
| `HF_TOKEN` | `hf_xxxxxxxxxxxxxxxxxxxxxxx` | Hugging Face token with read access to that private Space |
|
| 24 |
+
|
| 25 |
+
## 🚀 Deployment
|
| 26 |
+
1. Create a **new public Space** → Type: `Docker`.
|
| 27 |
+
2. Upload:
|
| 28 |
+
- `loader.py`
|
| 29 |
+
- `Dockerfile`
|
| 30 |
+
- `README.md`
|
| 31 |
+
3. Add the above **secrets**.
|
| 32 |
+
4. Click **Factory Rebuild**.
|
| 33 |
+
|
| 34 |
+
Once built, visit
|
| 35 |
+
`https://cheekeong2025-iip-grading-loader.hf.space`
|
| 36 |
+
to access your private static app safely via proxy.
|