Spaces:
Running
Running
Revert to static SDK: restore the web app (no CPU quota for docker)
Browse files
README.md
CHANGED
|
@@ -3,43 +3,8 @@ title: PixieDuster
|
|
| 3 |
emoji: ✨
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: purple
|
| 6 |
-
sdk:
|
| 7 |
-
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
-
short_description: Clone a writing voice into an AI persona
|
| 10 |
---
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
The web app is served at `/`. Below is the metered API at `/api`, used by the [PixieDuster CLI](https://github.com/gretchenboria/PersonaPromptGenerator).
|
| 15 |
-
|
| 16 |
-
Callers authenticate with their own Hugging Face token. Usage is metered per
|
| 17 |
-
account against a daily allowance, with a hard global ceiling that fails closed.
|
| 18 |
-
|
| 19 |
-
## Required Space secret
|
| 20 |
-
|
| 21 |
-
| Name | Type | Value |
|
| 22 |
-
|---|---|---|
|
| 23 |
-
| `GEMINI_API_KEY` | **Secret** | Your Gemini key. Never a variable — secrets are not exposed to the build. |
|
| 24 |
-
|
| 25 |
-
## Optional Space variables
|
| 26 |
-
|
| 27 |
-
| Name | Default | What it does |
|
| 28 |
-
|---|---|---|
|
| 29 |
-
| `DAILY_PER_USER` | `5` | Personas one HF account may generate per UTC day. |
|
| 30 |
-
| `DAILY_GLOBAL` | `400` | Hard ceiling across everyone. This protects the bill. |
|
| 31 |
-
| `ALLOWED_MODELS` | `gemini-3.6-flash,gemini-2.5-flash,gemini-2.5-flash-lite` | Models callers may request. |
|
| 32 |
-
| `MAX_BODY_BYTES` | `6291456` | Largest request forwarded. |
|
| 33 |
-
|
| 34 |
-
## Persistent quota
|
| 35 |
-
|
| 36 |
-
Enable persistent storage on the Space so `/data` survives restarts. Without it
|
| 37 |
-
the quota database lives in `/tmp` and counters reset whenever the Space
|
| 38 |
-
rebuilds or sleeps.
|
| 39 |
-
|
| 40 |
-
## Endpoints
|
| 41 |
-
|
| 42 |
-
- `GET /api/health` — liveness and configuration
|
| 43 |
-
- `GET /api/me` — caller identity and remaining quota
|
| 44 |
-
- `GET /api/models` — allowed models
|
| 45 |
-
- `POST /api/models/{model}:generateContent` — metered proxy
|
|
|
|
| 3 |
emoji: ✨
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: purple
|
| 6 |
+
sdk: static
|
|
|
|
| 7 |
pinned: false
|
|
|
|
| 8 |
---
|
| 9 |
+
# PixieDuster - AI Persona Cloning
|
| 10 |
+
Upload your writing samples and clone your persona!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|